|
diff --git a/mkipks b/mkipks index ca934d8..798e73f 100755 --- a/ mkipks+++ b/ mkipks |
|
@@ -1,29 +1,29 @@ |
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/root/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 | [ -z "$VERSION_CVS" ] && 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 |
@@ -117,34 +117,34 @@ do |
117 | else |
117 | else |
118 | ffiles=$f |
118 | ffiles=$f |
119 | fi |
119 | fi |
120 | for ff in $ffiles |
120 | for ff in $ffiles |
121 | do |
121 | do |
122 | case $ff in |
122 | case $ff in |
123 | */CVS/*) |
123 | */CVS/*) |
124 | continue |
124 | continue |
125 | ;;*~) |
125 | ;;*~) |
126 | continue |
126 | continue |
127 | ;;*.control) |
127 | ;;*.control) |
128 | continue |
128 | continue |
129 | ;; $QTDIR/*) |
129 | ;; $QTDIR/*) |
130 | BASE=$(dirname /opt/QtPalmtop/${ff#$QTDIR/}) |
130 | BASE=$(dirname /opt/QtPalmtop/${ff#$QTDIR/}) |
131 | ;; etc/*.d/*) |
131 | ;; etc/*.d/*) |
132 | BASE=$(dirname /$ff) |
132 | BASE=$(dirname /$ff) |
133 | ;; ipaq/*) |
133 | ;; root/*) |
134 | BASE=$(dirname ${ff#ipaq}) |
134 | BASE=$(dirname ${ff#root}) |
135 | ;; *) |
135 | ;; *) |
136 | # For SHARP ROM compatibility. Should change to Qtopia. |
136 | # For SHARP ROM compatibility. Should change to Qtopia. |
137 | BASE=/opt/QtPalmtop/$(dirname $ff) |
137 | BASE=/opt/QtPalmtop/$(dirname $ff) |
138 | esac |
138 | esac |
139 | |
139 | |
140 | if [ -f $ff -o -b $ff -o -c $ff ] |
140 | if [ -f $ff -o -b $ff -o -c $ff ] |
141 | then |
141 | then |
142 | D=$DATADIR$BASE |
142 | D=$DATADIR$BASE |
143 | if [ -x $ff -a -n "$STRIP" ] |
143 | if [ -x $ff -a -n "$STRIP" ] |
144 | then |
144 | then |
145 | case $(file $ff) in |
145 | case $(file $ff) in |
146 | $STRIP_FILES) |
146 | $STRIP_FILES) |
147 | $STRIP $ff |
147 | $STRIP $ff |
148 | ;; *) |
148 | ;; *) |
149 | esac |
149 | esac |
150 | fi |
150 | fi |
|