release.sh: Add date to image name

This commit is contained in:
Arun Thomas 2011-07-20 11:47:09 +02:00
parent 0d9095d116
commit 2a2f25bf29

View file

@ -192,7 +192,8 @@ mkdir -p $RELEASEPACKAGE
echo " * Transfering bootstrap dirs to $RELEASEDIR" echo " * Transfering bootstrap dirs to $RELEASEDIR"
cp -p /bin/* /usr/bin/* /sbin/* $RELEASEDIR/$XBIN cp -p /bin/* /usr/bin/* /sbin/* $RELEASEDIR/$XBIN
cp -rp /usr/lib $RELEASEDIR/usr 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 \ 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 /usr/bin/grep /usr/bin/egrep /usr/bin/awk $RELEASEDIR/usr/bin
@ -221,11 +222,12 @@ then
#ifndef _VCS_REVISION #ifndef _VCS_REVISION
#define _VCS_REVISION \"$REVTAG\" #define _VCS_REVISION \"$REVTAG\"
#endif" >>$CONFIGHEADER #endif" >>$CONFIGHEADER
DATE=`date +%Y%m%d`
# output image name # output image name
if [ "$USB" -ne 0 ]; then if [ "$USB" -ne 0 ]; then
IMG=${IMG_BASE}_${REVTAG}.img IMG=${IMG_BASE}_${DATE}_${REVTAG}.img
else else
IMG=${IMG_BASE}_${REVTAG}.iso IMG=${IMG_BASE}_${DATE}_${REVTAG}.iso
fi fi
else else
echo "Copying contents from current src dir." echo "Copying contents from current src dir."