|
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 |
5 | DEB_VERSION=2.0 |
6 | DEB_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 | |
9 | mkdir -p $OPIEDIR/etc/rcS.d |
10 | mkdir -p $OPIEDIR/etc/rcS.d |
10 | ln -sf ../init.d/bootsplash $OPIEDIR/etc/rcS.d/S01bootsplash |
11 | ln -sf ../init.d/bootsplash $OPIEDIR/etc/rcS.d/S01bootsplash |
11 | |
12 | |
12 | VERSION_MAJ=$(sed -n -e 's/.*QPE_VERSION "\([0-9]*\)\..*\..*".*/\1/p' <$OPIEDIR/include/qpe/version.h) |
13 | VERSION_MAJ=$(sed -n -e 's/.*QPE_VERSION "\([0-9]*\)\..*\..*".*/\1/p' <$OPIEDIR/include/qpe/version.h) |
13 | VERSION_MIN=$(sed -n -e 's/.*QPE_VERSION ".*\.\([0-9]*\)\..*".*/\1/p' <$OPIEDIR/include/qpe/version.h) |
14 | VERSION_MIN=$(sed -n -e 's/.*QPE_VERSION ".*\.\([0-9]*\)\..*".*/\1/p' <$OPIEDIR/include/qpe/version.h) |
14 | VERSION_PAT=$(sed -n -e 's/.*QPE_VERSION ".*\..*\.\([0-9]*\).*/\1/p' <$OPIEDIR/include/qpe/version.h) |
15 | VERSION_PAT=$(sed -n -e 's/.*QPE_VERSION ".*\..*\.\([0-9]*\).*/\1/p' <$OPIEDIR/include/qpe/version.h) |
15 | SUB_VERSION=$(sed -n -e 's,.*SUB_VERSION \"\(.*\)\".*,\1,p' <$OPIEDIR/include/qpe/version.h) |
16 | SUB_VERSION=$(sed -n -e 's,.*SUB_VERSION \"\(.*\)\".*,\1,p' <$OPIEDIR/include/qpe/version.h) |
16 | if grep -q 'QPE_VERSION .*snapshot' $OPIEDIR/include/qpe/version.h |
17 | if grep -q 'QPE_VERSION .*snapshot' $OPIEDIR/include/qpe/version.h |
17 | then |
18 | then |
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 |
20 | else |
21 | else |
21 | VERSION_CVS="" |
22 | VERSION_CVS="" |
22 | fi |
23 | fi |
23 | |
24 | |
24 | QPE_VERSION=$VERSION_MAJ.$VERSION_MIN.$VERSION_PAT |
25 | QPE_VERSION=$VERSION_MAJ.$VERSION_MIN.$VERSION_PAT |
25 | |
26 | |
26 | ARCH=arm |
27 | ARCH=arm |
27 | STRIP=arm-linux-strip |
28 | STRIP=arm-linux-strip |
28 | STRIP_FILES="*ARM*not stripped" |
29 | STRIP_FILES="*ARM*not stripped" |
29 | |
30 | |
30 | TDIR=/tmp/ipk$$ |
31 | TDIR=/tmp/ipk$$ |
31 | DATADIR=$TDIR |
32 | DATADIR=$TDIR |
32 | CTRLDIR=$TDIR/CONTROL |
33 | CTRLDIR=$TDIR/CONTROL |
33 | |
34 | |
34 | IMAGEDIR= |
35 | IMAGEDIR= |
35 | VERB= |
36 | VERB= |
36 | LIST= |
37 | LIST= |
37 | RPM= |
38 | RPM= |
38 | |
39 | |
39 | while [ $# -ne 0 ] |
40 | while [ $# -ne 0 ] |
40 | do |
41 | do |
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 | ;; /*) |
|