|
diff --git a/mkipks b/mkipks index 63d1e22..ca934d8 100755 --- a/ mkipks+++ b/ mkipks |
|
@@ -1,87 +1,87 @@ |
1 | #!/bin/sh |
1 | #!/bin/sh |
2 | |
2 | |
3 | QTE_VERSION=2.3.4 |
3 | QTE_VERSION=2.3.4 |
4 | DEB_VERSION=2.0 |
4 | DEB_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 |
7 | mkdir -p $OPIEDIR/etc/rc2.d |
7 | mkdir -p $OPIEDIR/etc/rc2.d |
8 | ln -sf ../init.d/opie $OPIEDIR/etc/rc2.d/S98opie |
8 | ln -sf ../init.d/opie $OPIEDIR/etc/rc2.d/S98opie |
9 | |
9 | |
10 | mkdir -p $OPIEDIR/etc/rcS.d |
10 | mkdir -p $OPIEDIR/etc/rcS.d |
11 | ln -sf ../init.d/bootsplash $OPIEDIR/etc/rcS.d/S01bootsplash |
11 | ln -sf ../init.d/bootsplash $OPIEDIR/etc/rcS.d/S01bootsplash |
12 | |
12 | |
13 | ln -sf ../init.d/opieatd $OPIEDIR/ipaq/etc/rc2.d/S96opieatd |
13 | ln -sf ../init.d/opieatd $OPIEDIR/ipaq/etc/rc2.d/S96opieatd |
14 | |
14 | |
15 | |
15 | |
16 | |
16 | |
17 | VERSION_MAJ=$(sed -n -e 's/.*QPE_VERSION "\([0-9]*\)\..*\..*".*/\1/p' <$OPIEDIR/include/qpe/version.h) |
17 | VERSION_MAJ=$(sed -n -e 's/.*QPE_VERSION "\([0-9]*\)\..*\..*".*/\1/p' <$OPIEDIR/include/qpe/version.h) |
18 | VERSION_MIN=$(sed -n -e 's/.*QPE_VERSION ".*\.\([0-9]*\)\..*".*/\1/p' <$OPIEDIR/include/qpe/version.h) |
18 | VERSION_MIN=$(sed -n -e 's/.*QPE_VERSION ".*\.\([0-9]*\)\..*".*/\1/p' <$OPIEDIR/include/qpe/version.h) |
19 | VERSION_PAT=$(sed -n -e 's/.*QPE_VERSION ".*\..*\.\([0-9]*\).*/\1/p' <$OPIEDIR/include/qpe/version.h) |
19 | VERSION_PAT=$(sed -n -e 's/.*QPE_VERSION ".*\..*\.\([0-9]*\).*/\1/p' <$OPIEDIR/include/qpe/version.h) |
20 | SUB_VERSION=$(sed -n -e 's,.*SUB_VERSION \"\(.*\)\".*,\1,p' <$OPIEDIR/include/qpe/version.h) |
20 | SUB_VERSION=$(sed -n -e 's,.*SUB_VERSION \"\(.*\)\".*,\1,p' <$OPIEDIR/include/qpe/version.h) |
21 | if grep -q 'QPE_VERSION .*snapshot' $OPIEDIR/include/qpe/version.h |
21 | if grep -q 'QPE_VERSION .*snapshot' $OPIEDIR/include/qpe/version.h |
22 | then |
22 | then |
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 |
25 | else |
25 | else |
26 | VERSION_CVS="" |
26 | VERSION_CVS="" |
27 | fi |
27 | fi |
28 | |
28 | |
29 | QPE_VERSION=$VERSION_MAJ.$VERSION_MIN.$VERSION_PAT |
29 | QPE_VERSION=$VERSION_MAJ.$VERSION_MIN.$VERSION_PAT |
30 | |
30 | |
31 | ARCH=arm |
31 | ARCH=arm |
32 | STRIP=arm-linux-strip |
32 | STRIP=arm-linux-strip |
33 | STRIP_FILES="*ARM*not stripped" |
33 | STRIP_FILES="*ARM*not stripped" |
34 | |
34 | |
35 | TDIR=/tmp/ipk$$ |
35 | TDIR=/tmp/ipk$$ |
36 | DATADIR=$TDIR |
36 | DATADIR=$TDIR |
37 | CTRLDIR=$TDIR/CONTROL |
37 | CTRLDIR=$TDIR/CONTROL |
38 | |
38 | |
39 | IMAGEDIR= |
39 | IMAGEDIR= |
40 | VERB= |
40 | VERB= |
41 | LIST= |
41 | LIST= |
42 | RPM= |
42 | RPM= |
43 | |
43 | |
44 | while [ $# -ne 0 ] |
44 | while [ $# -ne 0 ] |
45 | do |
45 | do |
46 | case "$1" in |
46 | case "$1" in |
47 | -v) |
47 | -v) |
48 | VERB=1 |
48 | VERB=1 |
49 | echo >&2 "Packaging for version $VERSION_MAJ.$VERSION_MIN.$VERSION_PAT$VERSION_CVS" |
49 | echo >&2 "Packaging for version $VERSION_MAJ.$VERSION_MIN.$VERSION_PAT$VERSION_CVS" |
50 | ;; -l) |
50 | ;; -l) |
51 | LIST=1 |
51 | LIST=1 |
52 | ;; -i) |
52 | ;; -i) |
53 | shift |
53 | shift |
54 | IMAGEDIR=$1 |
54 | IMAGEDIR=$1 |
55 | DATADIR=$IMAGEDIR |
55 | DATADIR=$IMAGEDIR |
56 | mkdir -p $IMAGEDIR |
56 | mkdir -p $IMAGEDIR |
57 | ;; -classic) |
57 | ;; -classic) |
58 | classicopts=-c |
58 | classicopts=-c |
59 | ;; -rpm) |
59 | ;; -rpm) |
60 | if [ "$OPIEDIR" != "/opt/Qtopia" ] |
60 | if [ "$OPIEDIR" != "/opt/Qtopia" ] |
61 | then |
61 | then |
62 | echo >&2 '$OPIEDIR is not the standard /usr/Qtopia directory.' |
62 | echo >&2 '$OPIEDIR is not the standard /usr/Qtopia directory.' |
63 | sleep 1 |
63 | sleep 1 |
64 | #exit 1 |
64 | #exit 1 |
65 | fi |
65 | fi |
66 | RPM=1 |
66 | RPM=1 |
67 | ;; -arch) |
67 | ;; -arch) |
68 | shift |
68 | shift |
69 | ARCH=$1 |
69 | ARCH=$1 |
70 | STRIP= |
70 | STRIP= |
71 | STRIP_FILES= |
71 | STRIP_FILES= |
72 | ;; /*) |
72 | ;; /*) |
73 | FILES="$FILES $1" |
73 | FILES="$FILES $1" |
74 | ;; *) |
74 | ;; *) |
75 | FILES="$FILES $PWD/$1" |
75 | FILES="$FILES $PWD/$1" |
76 | esac |
76 | esac |
77 | shift |
77 | shift |
78 | done |
78 | done |
79 | |
79 | |
80 | if [ -z "$FILES" ] |
80 | if [ -z "$FILES" ] |
81 | then |
81 | then |
82 | FILES=`find $OPIEDIR -name "*.control" -print` |
82 | FILES=`find $OPIEDIR -name "*.control" -print` |
83 | fi |
83 | fi |
84 | |
84 | |
85 | RDIR=$PWD |
85 | RDIR=$PWD |
86 | ORIGDIR=`pwd` |
86 | ORIGDIR=`pwd` |
87 | cd $OPIEDIR |
87 | cd $OPIEDIR |
|