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"
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."