author | kergoth <kergoth> | 2002-10-13 22:36:31 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2002-10-13 22:36:31 (UTC) |
commit | 30faba6b2e07457fcda55e6e968f1230a2e5edda (patch) (side-by-side diff) | |
tree | b7edba6aa28c24265f6ce88c0e0e77162cb802ec /mkipks | |
parent | c94a9c3a93907d8a0c034e5b4c6d0a768d9fea7c (diff) | |
download | opie-30faba6b2e07457fcda55e6e968f1230a2e5edda.zip opie-30faba6b2e07457fcda55e6e968f1230a2e5edda.tar.gz opie-30faba6b2e07457fcda55e6e968f1230a2e5edda.tar.bz2 |
minor tweak to allow passing VERSION_CVS via the environment
-rwxr-xr-x | mkipks | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -17,13 +17,13 @@ ln -sf ../init.d/opieatd $OPIEDIR/ipaq/etc/rc2.d/S96opieatd VERSION_MAJ=$(sed -n -e 's/.*QPE_VERSION "\([0-9]*\)\..*\..*".*/\1/p' <$OPIEDIR/include/qpe/version.h) VERSION_MIN=$(sed -n -e 's/.*QPE_VERSION ".*\.\([0-9]*\)\..*".*/\1/p' <$OPIEDIR/include/qpe/version.h) VERSION_PAT=$(sed -n -e 's/.*QPE_VERSION ".*\..*\.\([0-9]*\).*/\1/p' <$OPIEDIR/include/qpe/version.h) SUB_VERSION=$(sed -n -e 's,.*SUB_VERSION \"\(.*\)\".*,\1,p' <$OPIEDIR/include/qpe/version.h) if grep -q 'QPE_VERSION .*snapshot' $OPIEDIR/include/qpe/version.h then - VERSION_CVS="$(date +%Y%m%d)" + [ -z "$VERSION_CVS" ] && VERSION_CVS="$(date +%Y%m%d)" SUB_VERSION=$VERSION_CVS else VERSION_CVS="" fi QPE_VERSION=$VERSION_MAJ.$VERSION_MIN.$VERSION_PAT |