author | harlekin <harlekin> | 2002-09-09 18:06:58 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-09-09 18:06:58 (UTC) |
commit | 2e56c4b88cfb1ebdbc0d952791af48c870f9f14b (patch) (unidiff) | |
tree | b83cc69d9f8c63cd41dbcf4b2fd24de1a706ac95 | |
parent | 735ada29bb32fd3a0a22d2ba3bb75ce2df386617 (diff) | |
download | opie-2e56c4b88cfb1ebdbc0d952791af48c870f9f14b.zip opie-2e56c4b88cfb1ebdbc0d952791af48c870f9f14b.tar.gz opie-2e56c4b88cfb1ebdbc0d952791af48c870f9f14b.tar.bz2 |
we are on qt 2.3.4-pre now
-rwxr-xr-x | mkipks | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1,131 +1,131 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | 2 | ||
3 | QTE_VERSION=2.3.3 | 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 etc/rc2.d | 7 | mkdir -p etc/rc2.d |
8 | rm -f etc/rc2.d/S98opie | 8 | rm -f etc/rc2.d/S98opie |
9 | ln -s ../init.d/opie etc/rc2.d/S98opie | 9 | ln -s ../init.d/opie etc/rc2.d/S98opie |
10 | 10 | ||
11 | mkdir -p etc/rcS.d | 11 | mkdir -p etc/rcS.d |
12 | rm -f etc/rcS.d/S01bootsplash | 12 | rm -f etc/rcS.d/S01bootsplash |
13 | ln -s ../init.d/bootsplash etc/rcS.d/S01bootsplash | 13 | ln -s ../init.d/bootsplash etc/rcS.d/S01bootsplash |
14 | 14 | ||
15 | rm -f ipaq/etc/rc2.d/S96opieatd | 15 | rm -f ipaq/etc/rc2.d/S96opieatd |
16 | ln -s ../init.d/opieatd ipaq/etc/rc2.d/S96opieatd | 16 | ln -s ../init.d/opieatd ipaq/etc/rc2.d/S96opieatd |
17 | 17 | ||
18 | 18 | ||
19 | 19 | ||
20 | VERSION_MAJ=$(sed -n -e 's/.*QPE_VERSION "\([0-9]*\)\..*\..*".*/\1/p' <$OPIEDIR/include/qpe/version.h) | 20 | VERSION_MAJ=$(sed -n -e 's/.*QPE_VERSION "\([0-9]*\)\..*\..*".*/\1/p' <$OPIEDIR/include/qpe/version.h) |
21 | VERSION_MIN=$(sed -n -e 's/.*QPE_VERSION ".*\.\([0-9]*\)\..*".*/\1/p' <$OPIEDIR/include/qpe/version.h) | 21 | VERSION_MIN=$(sed -n -e 's/.*QPE_VERSION ".*\.\([0-9]*\)\..*".*/\1/p' <$OPIEDIR/include/qpe/version.h) |
22 | VERSION_PAT=$(sed -n -e 's/.*QPE_VERSION ".*\..*\.\([0-9]*\).*/\1/p' <$OPIEDIR/include/qpe/version.h) | 22 | VERSION_PAT=$(sed -n -e 's/.*QPE_VERSION ".*\..*\.\([0-9]*\).*/\1/p' <$OPIEDIR/include/qpe/version.h) |
23 | SUB_VERSION=$(sed -n -e 's,.*SUB_VERSION \"\(.*\)\".*,\1,p' <$OPIEDIR/include/qpe/version.h) | 23 | SUB_VERSION=$(sed -n -e 's,.*SUB_VERSION \"\(.*\)\".*,\1,p' <$OPIEDIR/include/qpe/version.h) |
24 | if grep -q 'QPE_VERSION .*snapshot' $OPIEDIR/include/qpe/version.h | 24 | if grep -q 'QPE_VERSION .*snapshot' $OPIEDIR/include/qpe/version.h |
25 | then | 25 | then |
26 | VERSION_CVS="$(date +%Y%m%d)" | 26 | VERSION_CVS="$(date +%Y%m%d)" |
27 | SUB_VERSION=$VERSION_CVS | 27 | SUB_VERSION=$VERSION_CVS |
28 | else | 28 | else |
29 | VERSION_CVS="" | 29 | VERSION_CVS="" |
30 | fi | 30 | fi |
31 | 31 | ||
32 | QPE_VERSION=$VERSION_MAJ.$VERSION_MIN.$VERSION_PAT | 32 | QPE_VERSION=$VERSION_MAJ.$VERSION_MIN.$VERSION_PAT |
33 | 33 | ||
34 | ARCH=arm | 34 | ARCH=arm |
35 | STRIP=arm-linux-strip | 35 | STRIP=arm-linux-strip |
36 | STRIP_FILES="*ARM*not stripped" | 36 | STRIP_FILES="*ARM*not stripped" |
37 | 37 | ||
38 | TDIR=/tmp/ipk$$ | 38 | TDIR=/tmp/ipk$$ |
39 | DATADIR=$TDIR | 39 | DATADIR=$TDIR |
40 | CTRLDIR=$TDIR/CONTROL | 40 | CTRLDIR=$TDIR/CONTROL |
41 | 41 | ||
42 | IMAGEDIR= | 42 | IMAGEDIR= |
43 | VERB= | 43 | VERB= |
44 | LIST= | 44 | LIST= |
45 | RPM= | 45 | RPM= |
46 | 46 | ||
47 | while [ $# -ne 0 ] | 47 | while [ $# -ne 0 ] |
48 | do | 48 | do |
49 | case "$1" in | 49 | case "$1" in |
50 | -v) | 50 | -v) |
51 | VERB=1 | 51 | VERB=1 |
52 | echo >&2 "Packaging for version $VERSION_MAJ.$VERSION_MIN.$VERSION_PAT$VERSION_CVS" | 52 | echo >&2 "Packaging for version $VERSION_MAJ.$VERSION_MIN.$VERSION_PAT$VERSION_CVS" |
53 | ;; -l) | 53 | ;; -l) |
54 | LIST=1 | 54 | LIST=1 |
55 | ;; -i) | 55 | ;; -i) |
56 | shift | 56 | shift |
57 | IMAGEDIR=$1 | 57 | IMAGEDIR=$1 |
58 | DATADIR=$IMAGEDIR | 58 | DATADIR=$IMAGEDIR |
59 | mkdir -p $IMAGEDIR | 59 | mkdir -p $IMAGEDIR |
60 | ;; -classic) | 60 | ;; -classic) |
61 | CLASSIC=1 | 61 | CLASSIC=1 |
62 | ;; -rpm) | 62 | ;; -rpm) |
63 | if [ "$OPIEDIR" != "/opt/Qtopia" ] | 63 | if [ "$OPIEDIR" != "/opt/Qtopia" ] |
64 | then | 64 | then |
65 | echo >&2 '$OPIEDIR is not the standard /usr/Qtopia directory.' | 65 | echo >&2 '$OPIEDIR is not the standard /usr/Qtopia directory.' |
66 | sleep 1 | 66 | sleep 1 |
67 | #exit 1 | 67 | #exit 1 |
68 | fi | 68 | fi |
69 | RPM=1 | 69 | RPM=1 |
70 | ;; -arch) | 70 | ;; -arch) |
71 | shift | 71 | shift |
72 | ARCH=$1 | 72 | ARCH=$1 |
73 | STRIP= | 73 | STRIP= |
74 | STRIP_FILES= | 74 | STRIP_FILES= |
75 | ;; /*) | 75 | ;; /*) |
76 | FILES="$FILES $1" | 76 | FILES="$FILES $1" |
77 | ;; *) | 77 | ;; *) |
78 | FILES="$FILES $PWD/$1" | 78 | FILES="$FILES $PWD/$1" |
79 | esac | 79 | esac |
80 | shift | 80 | shift |
81 | done | 81 | done |
82 | 82 | ||
83 | if [ -n "$CLASSIC" ] | 83 | if [ -n "$CLASSIC" ] |
84 | then | 84 | then |
85 | DATADIR=$TDIR/data | 85 | DATADIR=$TDIR/data |
86 | CTRLDIR=$TDIR/control | 86 | CTRLDIR=$TDIR/control |
87 | fi | 87 | fi |
88 | 88 | ||
89 | if [ -z "$FILES" ] | 89 | if [ -z "$FILES" ] |
90 | then | 90 | then |
91 | FILES=`find $OPIEDIR -name "*.control" -print` | 91 | FILES=`find $OPIEDIR -name "*.control" -print` |
92 | fi | 92 | fi |
93 | 93 | ||
94 | RDIR=$PWD | 94 | RDIR=$PWD |
95 | cd $OPIEDIR | 95 | cd $OPIEDIR |
96 | 96 | ||
97 | for i in $FILES | 97 | for i in $FILES |
98 | do | 98 | do |
99 | rm -rf $TDIR | 99 | rm -rf $TDIR |
100 | 100 | ||
101 | mkdir -p $DATADIR | 101 | mkdir -p $DATADIR |
102 | mkdir -p $CTRLDIR | 102 | mkdir -p $CTRLDIR |
103 | 103 | ||
104 | packagename=${i##*/}; packagename=${packagename%.control} | 104 | packagename=${i##*/}; packagename=${packagename%.control} |
105 | version=$(eval echo '"'$(sed -n -e "s/^Version: *//p" $i)'"') | 105 | version=$(eval echo '"'$(sed -n -e "s/^Version: *//p" $i)'"') |
106 | depends=$(eval echo '"'$(sed -n -e "s/^Depends: *//p" $i)'"') | 106 | depends=$(eval echo '"'$(sed -n -e "s/^Depends: *//p" $i)'"') |
107 | files=$(eval echo $(sed -n -e "s/^Files://p" $i)) | 107 | files=$(eval echo $(sed -n -e "s/^Files://p" $i)) |
108 | arch=$(eval echo $(sed -n -e "s/^Arch://p" $i)) | 108 | arch=$(eval echo $(sed -n -e "s/^Arch://p" $i)) |
109 | section=$(sed -n -e "s/^Section: *//p" $i) | 109 | section=$(sed -n -e "s/^Section: *//p" $i) |
110 | provides=$(sed -n -e "s/^Provides: *//p" $i) | 110 | provides=$(sed -n -e "s/^Provides: *//p" $i) |
111 | conflicts=$(sed -n -e "s/^Conflicts: *//p" $i) | 111 | conflicts=$(sed -n -e "s/^Conflicts: *//p" $i) |
112 | license=$(sed -n -e "s/^License: *//p" $i) | 112 | license=$(sed -n -e "s/^License: *//p" $i) |
113 | summary=$(sed -n -e "s/^Description: *//p" $i) | 113 | summary=$(sed -n -e "s/^Description: *//p" $i) |
114 | package=${packagename}_${version}_$ARCH | 114 | package=${packagename}_${version}_$ARCH |
115 | ERROR= | 115 | ERROR= |
116 | if [ -z "$files" ] | 116 | if [ -z "$files" ] |
117 | then | 117 | then |
118 | mkdir -p $DATADIR/usr/share/doc/$packagename | 118 | mkdir -p $DATADIR/usr/share/doc/$packagename |
119 | else | 119 | else |
120 | for f in $files | 120 | for f in $files |
121 | do | 121 | do |
122 | if [ -d $f ] | 122 | if [ -d $f ] |
123 | then | 123 | then |
124 | ffiles=$(find $f -type f -o -type b -o -type c -o -type l) | 124 | ffiles=$(find $f -type f -o -type b -o -type c -o -type l) |
125 | else | 125 | else |
126 | ffiles=$f | 126 | ffiles=$f |
127 | fi | 127 | fi |
128 | for ff in $ffiles | 128 | for ff in $ffiles |
129 | do | 129 | do |
130 | case $ff in | 130 | case $ff in |
131 | */CVS/*) | 131 | */CVS/*) |