repo.or.cz
/
nasm
/
avx512.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
nasmdoc.src: Refer to ..imagebase in special symbols area
[nasm/avx512.git]
/
misc
/
tag-release
blob
230137f788c8a7777e47b3885acb206d877f97ba
1
#!/bin/sh
2
3
version
=
"
$1
"
4
repo
=
""
5
branch
=
""
6
7
if
[
-z
"
$version
"
];
then
8
echo
"Usage:
$0
version [repo branch]"
1
>&
2
9
exit
1
10
fi
11
12
tag
=
"nasm-
$version
"
13
14
if
[
$#
-eq
3
];
then
15
repo
=
"
$2
"
16
branch
=
"
$3
"
17
fi
18
19
echo
"
$version
"
>
version
20
git add version
21
git commit
-m
"NASM
$version
"
22
git tag
-a -m
"NASM
$version
"
"
$tag
"
23
24
if
[
$#
-eq
3
];
then
25
git push
"
$repo
"
"
$branch
"
26
git push
"
$repo
"
"
$tag
"
27
else
28
git push
29
git push
--tags
30
fi