-
Notifications
You must be signed in to change notification settings - Fork 0
/
otabs-some-commands.htm
97 lines (92 loc) · 2.99 KB
/
otabs-some-commands.htm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<!DOCTYPE html>
<html>
<head>
<meta charset="utf8" />
<title>Commands for creating source tarballs</title>
</head>
<body><a href="https://github.com/ArsenShnurkov/gentoo-mono-handbook"><img alt="Fork me on GitHub" id="forkme" src="images/forkme.png" align="right" width="100" /></a>
<table><tr><td style="vertical-align:top;">
<h1>Commands for creating source tarballs</h1>
</td><td style="vertical-align:top;">
<a href="/OTABS.htm">OTABS</a>,
<a href="index.htm">Gentoo Mono Handbook</a>
<br />
<a href="otabs-how-to-remove-remote-tag.htm">How to remove remote tag</a>
</td></tr></table>
# branch is not pushed into github, so it's name is unimportant
<br />
# branch will be deleted later, only tag will stay
<br />
# branch name should be defferent from tag name
<br />
BRANCH_NAME=tmpbranch
<br />
# tag name is important, if SLOT=0 it can be omited
<br />
TAG_NAME=${CATEGORY}/${PN}/${SLOT}
<br />
/usr/libexec/git-core/git-check-ref-format ${TAG_NAME}
<br />
cd ${DISTDIR} # /var/calculate/remote/distfiles
<br />
<br />
cd /var/tmp/aaa
<br />
git clone -b master --single-branch https://github.com/ArsenShnurkov/shnurise-tarballs.git shnurise-tarballs.git
<br />
git remote set-url --push origin https://[email protected]/ArsenShnurkov/shnurise-tarballs.git
<br />
cd /var/tmp/aaa/shnurise-tarballs.git
<br />
git checkout --orphan "${BRANCH_NAME}"
<br />
git rm --cached * .gitignore .gitattributes
<br />
rm -rf * .gitignore .gitattributes
<br />
cp /var/tmp/tarballs/dotnet/dev-dotnet/system-web/system-web-4.6.0.182.tar.gz .
<br />
git add *
<br />
git commit -m "dev-dotnet/system-web/system-web-4.6.0.182.tar.gz"
<br />
git tag "${TAG_NAME}"
<br />
git push origin "${TAG_NAME}"
<br />
git checkout master
<br />
git branch -D "${BRANCH_NAME}"
<br />
<br />
https://github.com/ArsenShnurkov/shnurise-tarballs/raw/089b59ec221cfd6b1d6c4d2b160f5caf3e1229f8/system-web-4.6.0.182.tar.gz
<br />
<br />
$ git log -1
<br />
fatal: your current branch 'branch123' does not have any commits yet
<br />
$ git tag "${TAG_NAME}"
<br />
fatal: Failed to resolve 'HEAD' as a valid ref.
<h2>Download URL</h2>
What will be the download url for uploaded archive?
<br />
https://github.com/${username}/${reponame}/releases
<!--
<h2>Github</h2>
I think it is possible to keep sources unpacked to allow github to compress then in two ways (zip and tar.gz)
<br />
each package version will be under it's own tag
<br />
<br />
Another variant is to create just orphan tags on github and upload binaries with github attachments.
<br />
This way archive will not have .tar.gz.tar.gz extension:
<br />
https://github.com/ArsenShnurkov/shnurise-tarballs/releases/download/dev-dotnet%2Fsystem-web%2Fsystem-web-4.6.182.tar.gz/system-web-4.6.0.182.tar.gz
<br />
https://github.com/ArsenShnurkov/shnurise-tarballs/releases/download/dev-dotnet/system-web/system-web-4.6.182.tar.gz/system-web-4.6.0.182.tar.gz - also works
-->
</body>
</html>