|
diff --git a/mkipks b/mkipks index d4e4b38..3fbf160 100755 --- a/ mkipks+++ b/ mkipks |
|
@@ -1,52 +1,68 @@ |
1 | #!/bin/sh |
1 | #!/bin/sh |
2 | |
2 | |
3 | [ -z "$QTE_VERSION" ] && QTE_VERSION=2.3.4 |
3 | if [ -z "$QTE_BASEVERSION" ] |
4 | [ -z "$QTE_BASEVERSION" ] && QTE_BASEVERSION=2.3.4 |
4 | then |
| |
5 | if [ -e $QTDIR/include/qglobal.h ] |
| |
6 | then |
| |
7 | QTE_BASEVERSION=`cat $QTDIR/include/qglobal.h|grep '^#define QT_VERSION'|grep -v STR|sed -e 's,#define QT_VERSION\t*,,;' -e 's,.*\([0-9]\)\([0-9]\)\([0-9]\).*,\1.\2.\3,;'` |
| |
8 | else |
| |
9 | QTE_BASEVERSION=2.3.4 |
| |
10 | fi |
| |
11 | fi |
| |
12 | if [ -z "$QTE_VERSION" ] |
| |
13 | then |
| |
14 | if [ -e $QTDIR/include/qglobal.h ] |
| |
15 | then |
| |
16 | QTE_VERSION=`cat $QTDIR/include/qglobal.h|grep '^#define QT_VERSION_STR'|sed -e 's,#define QT_VERSION_STR\t*,,;' -e 's,.*"\([^"]*\)".*,\1,;'` |
| |
17 | else |
| |
18 | QTE_VERSION=2.3.4 |
| |
19 | fi |
| |
20 | fi |
5 | [ -z "$QTE_REVISION" ] && QTE_REVISION=3 |
21 | [ -z "$QTE_REVISION" ] && QTE_REVISION=3 |
6 | DEB_VERSION=2.0 |
22 | DEB_VERSION=2.0 |
7 | |
23 | |
8 | # Have to do this here, since CVS can't store symlinks |
24 | # Have to do this here, since CVS can't store symlinks |
9 | |
25 | |
10 | mkdir -p $OPIEDIR/etc/rcS.d |
26 | mkdir -p $OPIEDIR/etc/rcS.d |
11 | ln -sf ../init.d/bootsplash $OPIEDIR/etc/rcS.d/S01bootsplash |
27 | ln -sf ../init.d/bootsplash $OPIEDIR/etc/rcS.d/S01bootsplash |
12 | |
28 | |
13 | VERSION_MAJ=$(sed -n -e 's/.*QPE_VERSION "\([0-9]*\)\..*\..*".*/\1/p' <$OPIEDIR/include/qpe/version.h) |
29 | VERSION_MAJ=$(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) |
30 | VERSION_MIN=$(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) |
31 | VERSION_PAT=$(sed -n -e 's/.*QPE_VERSION ".*\..*\.\([0-9]*\).*/\1/p' <$OPIEDIR/include/qpe/version.h) |
16 | SUB_VERSION=$(sed -n -e 's,.*SUB_VERSION \"\(.*\)\".*,\1,p' <$OPIEDIR/include/qpe/version.h) |
32 | SUB_VERSION=$(sed -n -e 's,.*SUB_VERSION \"\(.*\)\".*,\1,p' <$OPIEDIR/include/qpe/version.h) |
17 | if grep -q 'QPE_VERSION .*snapshot' $OPIEDIR/include/qpe/version.h |
33 | if grep -q 'QPE_VERSION .*snapshot' $OPIEDIR/include/qpe/version.h |
18 | then |
34 | then |
19 | [ -z "$VERSION_CVS" ] && VERSION_CVS="$(date +%Y%m%d)" |
35 | [ -z "$VERSION_CVS" ] && VERSION_CVS="$(date +%Y%m%d)" |
20 | SUB_VERSION=$VERSION_CVS |
36 | SUB_VERSION=$VERSION_CVS |
21 | else |
37 | else |
22 | VERSION_CVS="" |
38 | VERSION_CVS="" |
23 | fi |
39 | fi |
24 | |
40 | |
25 | QPE_VERSION=$VERSION_MAJ.$VERSION_MIN.$VERSION_PAT |
41 | QPE_VERSION=$VERSION_MAJ.$VERSION_MIN.$VERSION_PAT |
26 | |
42 | |
27 | ARCH=arm |
43 | ARCH=arm |
28 | STRIP=arm-linux-strip |
44 | STRIP=arm-linux-strip |
29 | STRIP_FILES="*ARM*not stripped" |
45 | STRIP_FILES="*ARM*not stripped" |
30 | |
46 | |
31 | TDIR=/tmp/ipk$$ |
47 | TDIR=/tmp/ipk$$ |
32 | DATADIR=$TDIR |
48 | DATADIR=$TDIR |
33 | CTRLDIR=$TDIR/CONTROL |
49 | CTRLDIR=$TDIR/CONTROL |
34 | |
50 | |
35 | IMAGEDIR= |
51 | IMAGEDIR= |
36 | VERB= |
52 | VERB= |
37 | LIST= |
53 | LIST= |
38 | RPM= |
54 | RPM= |
39 | |
55 | |
40 | while [ $# -ne 0 ] |
56 | while [ $# -ne 0 ] |
41 | do |
57 | do |
42 | case "$1" in |
58 | case "$1" in |
43 | -v) |
59 | -v) |
44 | VERB=1 |
60 | VERB=1 |
45 | echo >&2 "Packaging for version $VERSION_MAJ.$VERSION_MIN.$VERSION_PAT$VERSION_CVS" |
61 | echo >&2 "Packaging for version $VERSION_MAJ.$VERSION_MIN.$VERSION_PAT$VERSION_CVS" |
46 | ;; -l) |
62 | ;; -l) |
47 | LIST=1 |
63 | LIST=1 |
48 | ;; -i) |
64 | ;; -i) |
49 | shift |
65 | shift |
50 | IMAGEDIR=$1 |
66 | IMAGEDIR=$1 |
51 | DATADIR=$IMAGEDIR |
67 | DATADIR=$IMAGEDIR |
52 | mkdir -p $IMAGEDIR |
68 | mkdir -p $IMAGEDIR |
|