summaryrefslogtreecommitdiff
path: root/mkipks
Unidiff
Diffstat (limited to 'mkipks') (more/less context) (ignore whitespace changes)
-rwxr-xr-xmkipks1
1 files changed, 1 insertions, 0 deletions
diff --git a/mkipks b/mkipks
index ffa4ef5..d4e4b38 100755
--- a/mkipks
+++ b/mkipks
@@ -1,67 +1,68 @@
1#!/bin/sh 1#!/bin/sh
2 2
3[ -z "$QTE_VERSION" ] && QTE_VERSION=2.3.4 3[ -z "$QTE_VERSION" ] && QTE_VERSION=2.3.4
4[ -z "$QTE_BASEVERSION" ] && QTE_BASEVERSION=2.3.4
4[ -z "$QTE_REVISION" ] && QTE_REVISION=3 5[ -z "$QTE_REVISION" ] && QTE_REVISION=3
5DEB_VERSION=2.0 6DEB_VERSION=2.0
6 7
7# Have to do this here, since CVS can't store symlinks 8# Have to do this here, since CVS can't store symlinks
8 9
9mkdir -p $OPIEDIR/etc/rcS.d 10mkdir -p $OPIEDIR/etc/rcS.d
10ln -sf ../init.d/bootsplash $OPIEDIR/etc/rcS.d/S01bootsplash 11ln -sf ../init.d/bootsplash $OPIEDIR/etc/rcS.d/S01bootsplash
11 12
12VERSION_MAJ=$(sed -n -e 's/.*QPE_VERSION "\([0-9]*\)\..*\..*".*/\1/p' <$OPIEDIR/include/qpe/version.h) 13VERSION_MAJ=$(sed -n -e 's/.*QPE_VERSION "\([0-9]*\)\..*\..*".*/\1/p' <$OPIEDIR/include/qpe/version.h)
13VERSION_MIN=$(sed -n -e 's/.*QPE_VERSION ".*\.\([0-9]*\)\..*".*/\1/p' <$OPIEDIR/include/qpe/version.h) 14VERSION_MIN=$(sed -n -e 's/.*QPE_VERSION ".*\.\([0-9]*\)\..*".*/\1/p' <$OPIEDIR/include/qpe/version.h)
14VERSION_PAT=$(sed -n -e 's/.*QPE_VERSION ".*\..*\.\([0-9]*\).*/\1/p' <$OPIEDIR/include/qpe/version.h) 15VERSION_PAT=$(sed -n -e 's/.*QPE_VERSION ".*\..*\.\([0-9]*\).*/\1/p' <$OPIEDIR/include/qpe/version.h)
15SUB_VERSION=$(sed -n -e 's,.*SUB_VERSION \"\(.*\)\".*,\1,p' <$OPIEDIR/include/qpe/version.h) 16SUB_VERSION=$(sed -n -e 's,.*SUB_VERSION \"\(.*\)\".*,\1,p' <$OPIEDIR/include/qpe/version.h)
16if grep -q 'QPE_VERSION .*snapshot' $OPIEDIR/include/qpe/version.h 17if grep -q 'QPE_VERSION .*snapshot' $OPIEDIR/include/qpe/version.h
17then 18then
18 [ -z "$VERSION_CVS" ] && VERSION_CVS="$(date +%Y%m%d)" 19 [ -z "$VERSION_CVS" ] && VERSION_CVS="$(date +%Y%m%d)"
19 SUB_VERSION=$VERSION_CVS 20 SUB_VERSION=$VERSION_CVS
20else 21else
21 VERSION_CVS="" 22 VERSION_CVS=""
22fi 23fi
23 24
24QPE_VERSION=$VERSION_MAJ.$VERSION_MIN.$VERSION_PAT 25QPE_VERSION=$VERSION_MAJ.$VERSION_MIN.$VERSION_PAT
25 26
26ARCH=arm 27ARCH=arm
27STRIP=arm-linux-strip 28STRIP=arm-linux-strip
28STRIP_FILES="*ARM*not stripped" 29STRIP_FILES="*ARM*not stripped"
29 30
30TDIR=/tmp/ipk$$ 31TDIR=/tmp/ipk$$
31DATADIR=$TDIR 32DATADIR=$TDIR
32CTRLDIR=$TDIR/CONTROL 33CTRLDIR=$TDIR/CONTROL
33 34
34IMAGEDIR= 35IMAGEDIR=
35VERB= 36VERB=
36LIST= 37LIST=
37RPM= 38RPM=
38 39
39while [ $# -ne 0 ] 40while [ $# -ne 0 ]
40do 41do
41 case "$1" in 42 case "$1" in
42 -v) 43 -v)
43 VERB=1 44 VERB=1
44 echo >&2 "Packaging for version $VERSION_MAJ.$VERSION_MIN.$VERSION_PAT$VERSION_CVS" 45 echo >&2 "Packaging for version $VERSION_MAJ.$VERSION_MIN.$VERSION_PAT$VERSION_CVS"
45 ;; -l) 46 ;; -l)
46 LIST=1 47 LIST=1
47 ;; -i) 48 ;; -i)
48 shift 49 shift
49 IMAGEDIR=$1 50 IMAGEDIR=$1
50 DATADIR=$IMAGEDIR 51 DATADIR=$IMAGEDIR
51 mkdir -p $IMAGEDIR 52 mkdir -p $IMAGEDIR
52 ;; -classic) 53 ;; -classic)
53 classicopts=-c 54 classicopts=-c
54 ;; -rpm) 55 ;; -rpm)
55 if [ "$OPIEDIR" != "/opt/Qtopia" ] 56 if [ "$OPIEDIR" != "/opt/Qtopia" ]
56 then 57 then
57 echo >&2 '$OPIEDIR is not the standard /usr/Qtopia directory.' 58 echo >&2 '$OPIEDIR is not the standard /usr/Qtopia directory.'
58 sleep 1 59 sleep 1
59 #exit 1 60 #exit 1
60 fi 61 fi
61 RPM=1 62 RPM=1
62 ;; -arch) 63 ;; -arch)
63 shift 64 shift
64 ARCH=$1 65 ARCH=$1
65 STRIP= 66 STRIP=
66 STRIP_FILES= 67 STRIP_FILES=
67 ;; /*) 68 ;; /*)