Skip to content

Commit ac8e233

Browse files
Tag and push linux repository for releases
Tag names should be arc-gnu-$release instead of normal arc-$release, so in Linux repository it would be clear that those tags come from toolchain. Signed-off-by: Anton Kolesov <[email protected]>
1 parent ec15328 commit ac8e233

File tree

3 files changed

+18
-11
lines changed

3 files changed

+18
-11
lines changed

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2015-02-27 Anton Kolesov <[email protected]>
2+
3+
* tag-releas.sh: Tag Linux repository.
4+
* push-release.sh: Push Linux repository.
5+
16
2015-02-27 Anton Kolesov <[email protected]>
27

38
* build-uclibc.sh: Configure linux out of source tree.

push-release.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ do
6161
# tag-release.sh updates it.
6262
case $repo in
6363
gdb) to_push=${tagname}-gdb ;;
64+
linux) to_push=${tagname/arc-/arc-gdb-} ;;
6465
toolchain) to_push="$tagname arc-releases" ;;
6566
*) to_push=$tagname ;;
6667
esac

tag-release.sh

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ fi
9393
echo "All repos checked out"
9494

9595
# Sanity check that each branch has a remote
96-
for repo in cgen binutils gcc gdb newlib uClibc toolchain
96+
for repo in cgen binutils gcc gdb newlib uClibc toolchain linux
9797
do
9898
cd ../${repo} > /dev/null 2>&1
9999
if ! branch=`git symbolic-ref -q HEAD --short`
@@ -110,21 +110,22 @@ do
110110
cd - > /dev/null 2>&1
111111
done
112112

113-
# Tag each component (not Linux)
114-
for repo in cgen binutils gcc gdb newlib uClibc
113+
# Tag each component
114+
for repo in cgen binutils gcc gdb newlib uClibc linux
115115
do
116116
cd ../${repo} > /dev/null 2>&1
117117

118118
# Special case for GDB, since we can't have two identical tags in the
119119
# binutils-gdb repo.
120-
if [ "x${repo}" = "xgdb" ]
121-
then
122-
suffix="-gdb"
123-
else
124-
suffix=""
125-
fi
126-
127-
if ! git tag ${tagname}${suffix}
120+
# And another special case for Linux, since it is a separate product, we
121+
# don't want it to be clear that this tag is for toolchian.
122+
case $repo in
123+
gdb) tag=${tagname}-gdb ;;
124+
linux) tag=${tag/arc-/arc-gnu-} ;;
125+
*) tag=$tagname
126+
esac
127+
128+
if ! git tag ${tag}
128129
then
129130
echo "ERROR: Failed to tag ${repo}"
130131
exit 1

0 commit comments

Comments
 (0)