Commit 500da2e1 authored by Claes Sjofors's avatar Claes Sjofors

pwre configure, previously stated version kept

parent e8addfc3
...@@ -8,8 +8,12 @@ pwre_configure.h ...@@ -8,8 +8,12 @@ pwre_configure.h
Arguments Arguments
--help Display help. --help Display help.
--version State fix version of loadfiles, eg --version State fix version of loadfiles, eg
pwre configure --version "29-MAY-2011 16:00:00"
> pwre configure --version "29-MAY-2011 16:00:00"
--reset-version Reset previous version
EOF EOF
} }
...@@ -270,6 +274,19 @@ if [ "$1" = "--help" ]; then ...@@ -270,6 +274,19 @@ if [ "$1" = "--help" ]; then
exit exit
elif [ "$1" = "--version" ] && [ "$2" != "" ] && [ "$3" != "" ]; then elif [ "$1" = "--version" ] && [ "$2" != "" ] && [ "$3" != "" ]; then
buildversion=$2" "$3 buildversion=$2" "$3
elif [ "$1" = "--reset-version" ]; then
buildversion=""
elif [ "$1" != "" ]; then
echo "Unknown option \"$1\""
exit
else
# Catch current version
if [ -e $cfile ]; then
ver=`eval cat $cfile | grep "\bexport PWRE_CONF_BUILDVERSION"`
ver=${ver#*=\"}
ver=${ver%\"}
buildversion=$ver
fi
fi fi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment