rev.sh
618 Bytes
#!/bin/sh
#
# Generate identification startup message
# Overrides ide_startup script in libvd/ide_startup.c
#
# $Revision: 1.2 $
bs='\'
if [ "$1" != "" -a "$ALPHANUM" != "" ]
then
if [ "$ALPHANUM" = "MR" ] ; then
rel="$1"
else
rel="$1-ALPHA-$ALPHANUM"
fi
else
# help identify development code
who=`echo $USER`
rel=`basename $ROOT`
rel="${who}-${rel}"
fi
#echo "char ide_startup[] = \"echo ${bs}${bs}\"Welcome to ide (rev. ${rel} `date +%y%m%d%H%M`)${bs}${bs}\"${bs}${bs}n\";"
echo "char ide_startup[] = \"echo ${bs}\"Welcome to ide (rev. ${rel} `date +%y%m%d%H%M`)${bs}\n\";"