summaryrefslogtreecommitdiff
authorkergoth <kergoth>2002-10-13 22:36:31 (UTC)
committer kergoth <kergoth>2002-10-13 22:36:31 (UTC)
commit30faba6b2e07457fcda55e6e968f1230a2e5edda (patch) (unidiff)
treeb7edba6aa28c24265f6ce88c0e0e77162cb802ec
parentc94a9c3a93907d8a0c034e5b4c6d0a768d9fea7c (diff)
downloadopie-30faba6b2e07457fcda55e6e968f1230a2e5edda.zip
opie-30faba6b2e07457fcda55e6e968f1230a2e5edda.tar.gz
opie-30faba6b2e07457fcda55e6e968f1230a2e5edda.tar.bz2
minor tweak to allow passing VERSION_CVS via the environment
Diffstat (more/less context) (ignore whitespace changes)
-rwxr-xr-xmkipks2
1 files changed, 1 insertions, 1 deletions
diff --git a/mkipks b/mkipks
index 63d1e22..ca934d8 100755
--- a/mkipks
+++ b/mkipks
@@ -11,25 +11,25 @@ mkdir -p $OPIEDIR/etc/rcS.d
11ln -sf ../init.d/bootsplash $OPIEDIR/etc/rcS.d/S01bootsplash 11ln -sf ../init.d/bootsplash $OPIEDIR/etc/rcS.d/S01bootsplash
12 12
13ln -sf ../init.d/opieatd $OPIEDIR/ipaq/etc/rc2.d/S96opieatd 13ln -sf ../init.d/opieatd $OPIEDIR/ipaq/etc/rc2.d/S96opieatd
14 14
15 15
16 16
17VERSION_MAJ=$(sed -n -e 's/.*QPE_VERSION "\([0-9]*\)\..*\..*".*/\1/p' <$OPIEDIR/include/qpe/version.h) 17VERSION_MAJ=$(sed -n -e 's/.*QPE_VERSION "\([0-9]*\)\..*\..*".*/\1/p' <$OPIEDIR/include/qpe/version.h)
18VERSION_MIN=$(sed -n -e 's/.*QPE_VERSION ".*\.\([0-9]*\)\..*".*/\1/p' <$OPIEDIR/include/qpe/version.h) 18VERSION_MIN=$(sed -n -e 's/.*QPE_VERSION ".*\.\([0-9]*\)\..*".*/\1/p' <$OPIEDIR/include/qpe/version.h)
19VERSION_PAT=$(sed -n -e 's/.*QPE_VERSION ".*\..*\.\([0-9]*\).*/\1/p' <$OPIEDIR/include/qpe/version.h) 19VERSION_PAT=$(sed -n -e 's/.*QPE_VERSION ".*\..*\.\([0-9]*\).*/\1/p' <$OPIEDIR/include/qpe/version.h)
20SUB_VERSION=$(sed -n -e 's,.*SUB_VERSION \"\(.*\)\".*,\1,p' <$OPIEDIR/include/qpe/version.h) 20SUB_VERSION=$(sed -n -e 's,.*SUB_VERSION \"\(.*\)\".*,\1,p' <$OPIEDIR/include/qpe/version.h)
21if grep -q 'QPE_VERSION .*snapshot' $OPIEDIR/include/qpe/version.h 21if grep -q 'QPE_VERSION .*snapshot' $OPIEDIR/include/qpe/version.h
22then 22then
23 VERSION_CVS="$(date +%Y%m%d)" 23 [ -z "$VERSION_CVS" ] && VERSION_CVS="$(date +%Y%m%d)"
24 SUB_VERSION=$VERSION_CVS 24 SUB_VERSION=$VERSION_CVS
25else 25else
26 VERSION_CVS="" 26 VERSION_CVS=""
27fi 27fi
28 28
29QPE_VERSION=$VERSION_MAJ.$VERSION_MIN.$VERSION_PAT 29QPE_VERSION=$VERSION_MAJ.$VERSION_MIN.$VERSION_PAT
30 30
31ARCH=arm 31ARCH=arm
32STRIP=arm-linux-strip 32STRIP=arm-linux-strip
33STRIP_FILES="*ARM*not stripped" 33STRIP_FILES="*ARM*not stripped"
34 34
35TDIR=/tmp/ipk$$ 35TDIR=/tmp/ipk$$