summaryrefslogtreecommitdiff
authormark <mark>2002-02-04 21:09:13 (UTC)
committer mark <mark>2002-02-04 21:09:13 (UTC)
commitad32a5ffb9fcc666977c93fc074741fdfe22e5c4 (patch) (unidiff)
treed453aa891b8c63eb7c078ac55663b223974cf10a
parent4b769e6189666065937c8c34ba131d5ed6e66dfb (diff)
downloadopie-ad32a5ffb9fcc666977c93fc074741fdfe22e5c4.zip
opie-ad32a5ffb9fcc666977c93fc074741fdfe22e5c4.tar.gz
opie-ad32a5ffb9fcc666977c93fc074741fdfe22e5c4.tar.bz2
Read in $SUB_VERSION from library/version.h
Diffstat (more/less context) (ignore whitespace changes)
-rwxr-xr-xmkipks1
1 files changed, 1 insertions, 0 deletions
diff --git a/mkipks b/mkipks
index 45f2fb2..dedb060 100755
--- a/mkipks
+++ b/mkipks
@@ -1,37 +1,38 @@
1#!/bin/sh 1#!/bin/sh
2 2
3QTE_VERSION=2.3.2 3QTE_VERSION=2.3.2
4DEB_VERSION=2.0 4DEB_VERSION=2.0
5 5
6# Have to do this here, since CVS can't store symlinks 6# Have to do this here, since CVS can't store symlinks
7mkdir -p etc/rc2.d 7mkdir -p etc/rc2.d
8rm -f etc/rc2.d/S98qpe 8rm -f etc/rc2.d/S98qpe
9ln -s ../init.d/qpe etc/rc2.d/S98qpe 9ln -s ../init.d/qpe etc/rc2.d/S98qpe
10 10
11VERSION_MAJ=$(sed -n -e 's/.*QPE_VERSION "\([0-9]*\)\..*\..*".*/\1/p' <$OPIEDIR/include/qpe/version.h) 11VERSION_MAJ=$(sed -n -e 's/.*QPE_VERSION "\([0-9]*\)\..*\..*".*/\1/p' <$OPIEDIR/include/qpe/version.h)
12VERSION_MIN=$(sed -n -e 's/.*QPE_VERSION ".*\.\([0-9]*\)\..*".*/\1/p' <$OPIEDIR/include/qpe/version.h) 12VERSION_MIN=$(sed -n -e 's/.*QPE_VERSION ".*\.\([0-9]*\)\..*".*/\1/p' <$OPIEDIR/include/qpe/version.h)
13VERSION_PAT=$(sed -n -e 's/.*QPE_VERSION ".*\..*\.\([0-9]*\).*/\1/p' <$OPIEDIR/include/qpe/version.h) 13VERSION_PAT=$(sed -n -e 's/.*QPE_VERSION ".*\..*\.\([0-9]*\).*/\1/p' <$OPIEDIR/include/qpe/version.h)
14SUB_VERSION=$(sed -n -e 's,.*SUB_VERSION \"\(.*\)\".*,\1,p' <$OPIEDIR/include/qpe/version.h)
14if grep -q 'QPE_VERSION .*snapshot' $OPIEDIR/include/qpe/version.h 15if grep -q 'QPE_VERSION .*snapshot' $OPIEDIR/include/qpe/version.h
15then 16then
16 VERSION_CVS="_$(date +%Y%m%d)" 17 VERSION_CVS="_$(date +%Y%m%d)"
17else 18else
18 VERSION_CVS="" 19 VERSION_CVS=""
19fi 20fi
20 21
21QPE_VERSION=$VERSION_MAJ.$VERSION_MIN.$VERSION_PAT 22QPE_VERSION=$VERSION_MAJ.$VERSION_MIN.$VERSION_PAT
22 23
23ARCH=arm 24ARCH=arm
24STRIP=arm-linux-strip 25STRIP=arm-linux-strip
25STRIP_FILES="*Advanced RISC Machines ARM*not stripped" 26STRIP_FILES="*Advanced RISC Machines ARM*not stripped"
26 27
27TDIR=/tmp/ipk$$ 28TDIR=/tmp/ipk$$
28DATADIR=$TDIR/data 29DATADIR=$TDIR/data
29CTRLDIR=$TDIR/control 30CTRLDIR=$TDIR/control
30 31
31IMAGEDIR= 32IMAGEDIR=
32VERB= 33VERB=
33LIST= 34LIST=
34RPM= 35RPM=
35 36
36while [ $# -ne 0 ] 37while [ $# -ne 0 ]
37do 38do