From: Arun Thomas Date: Wed, 20 Jul 2011 09:47:09 +0000 (+0200) Subject: release.sh: Add date to image name X-Git-Tag: v3.2.0~441 X-Git-Url: http://zhaoyanbai.com/repos/%22/xml/v3/mem/static/tz-link.htm?a=commitdiff_plain;h=2a2f25bf29349bbfc9512ebdc6c84b8d97c81280;p=minix.git release.sh: Add date to image name --- diff --git a/tools/release.sh b/tools/release.sh index 948e826fa..23579f7ad 100755 --- a/tools/release.sh +++ b/tools/release.sh @@ -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."