]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
make.sh: change system_relase generation for user branches.
authorArne Fitzenreiter <arne_f@ipfire.org>
Fri, 19 Oct 2012 16:20:58 +0000 (18:20 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Fri, 19 Oct 2012 16:20:58 +0000 (18:20 +0200)
make.sh

diff --git a/make.sh b/make.sh
index 1995836a43c7de1fbe6319892da2cd235ea4100b..25958f8d017575fc9c8874fd8f17a9d46d7837e7 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -760,11 +760,14 @@ buildipfire() {
   echo >> $BASEDIR/build/var/ipfire/firebuild
   cat /proc/cpuinfo >> $BASEDIR/build/var/ipfire/firebuild
   echo $PAKFIRE_CORE > $BASEDIR/build/opt/pakfire/db/core/mine
-  if [ "$GIT_BRANCH" = "master" -o "$GIT_BRANCH" = "next" ]; then
-       echo "$NAME $VERSION ($MACHINE) - Development Build: $GIT_LASTCOMMIT" > $BASEDIR/build/etc/system-release
-  else
-       echo "$NAME $VERSION ($MACHINE) - $GIT_BRANCH" > $BASEDIR/build/etc/system-release
-  fi
+  case "$GIT_BRANCH" in
+       core*)
+           echo "$NAME $VERSION ($MACHINE) - $GIT_BRANCH" > $BASEDIR/build/etc/system-release
+           ;;
+       *)
+           echo "$NAME $VERSION ($MACHINE) - Development Build: $GIT_BRANCH/$GIT_LASTCOMMIT" > $BASEDIR/build/etc/system-release
+           ;;
+  esac
 }
 
 buildinstaller() {