]> Zhao Yanbai Git Server - minix.git/commitdiff
release.sh: Add date to image name
authorArun Thomas <arun@minix3.org>
Wed, 20 Jul 2011 09:47:09 +0000 (11:47 +0200)
committerArun Thomas <arun@minix3.org>
Wed, 20 Jul 2011 09:47:09 +0000 (11:47 +0200)
tools/release.sh

index 948e826fa8741d2f677450ad027db1baa2848204..23579f7adae9b24825000e98e021609f576146c2 100755 (executable)
@@ -192,7 +192,8 @@ mkdir -p $RELEASEPACKAGE
 echo " * Transfering bootstrap dirs to $RELEASEDIR"
 cp -p /bin/* /usr/bin/* /sbin/* $RELEASEDIR/$XBIN
 cp -rp /usr/lib $RELEASEDIR/usr
-cp -rp /bin/sh /bin/echo /bin/install /bin/rm /bin/sed $RELEASEDIR/bin
+cp -rp /bin/sh /bin/echo /bin/install /bin/rm /bin/sed \
+    /bin/date $RELEASEDIR/bin
 cp -rp /usr/bin/make /usr/bin/yacc /usr/bin/lex /usr/bin/asmconv \
        /usr/bin/grep /usr/bin/egrep /usr/bin/awk $RELEASEDIR/usr/bin
 
@@ -221,11 +222,12 @@ then
 #ifndef _VCS_REVISION
 #define _VCS_REVISION \"$REVTAG\"
 #endif" >>$CONFIGHEADER
+       DATE=`date +%Y%m%d`
        # output image name
        if [ "$USB" -ne 0 ]; then
-               IMG=${IMG_BASE}_${REVTAG}.img
+               IMG=${IMG_BASE}_${DATE}_${REVTAG}.img
        else
-               IMG=${IMG_BASE}_${REVTAG}.iso
+               IMG=${IMG_BASE}_${DATE}_${REVTAG}.iso
        fi
 else
        echo "Copying contents from current src dir."