Changed the file for tagging ECL releases

This commit is contained in:
Juan Jose Garcia Ripoll 2009-07-09 16:08:12 +02:00
parent 7e694a08fd
commit cae50cb7b3

View file

@ -1,9 +1,14 @@
#!/bin/sh
k="CVS `date +"%Y-%m-%d %H:%M"`"
k=".`date +"%d%H%M"`"
file="src/lsp/config.lsp.in"
if [ -f $file ]; then
echo "Tagging ECL with date $k"
sed "s,@PACKAGE_VERSION@.*\",@PACKAGE_VERSION@ ($k)\",g" < $file > foo && \
if test -f $file ; then
if test -z "$1" ; then
echo "Tagging ECL with $k"
else
echo "Untagging ECL"
k=""
fi
sed "s,@PACKAGE_VERSION@.*\",@PACKAGE_VERSION@$k\",g" < $file > foo && \
mv foo $file && grep PACKAGE_VERSION $file
else
echo "Cannot find file to tag"