summaryrefslogtreecommitdiff
path: root/mkipks
authorkergoth <kergoth>2002-11-20 22:04:22 (UTC)
committer kergoth <kergoth>2002-11-20 22:04:22 (UTC)
commit8f11eb1712eb8f9d83f0ace551e72e74cce57d6b (patch) (unidiff)
tree3d5a5d297fa93388ff06501ef2ec40fe552d0dd4 /mkipks
parentea4e55183b22dc7fd0556db3f52170a3c97ca303 (diff)
downloadopie-8f11eb1712eb8f9d83f0ace551e72e74cce57d6b.zip
opie-8f11eb1712eb8f9d83f0ace551e72e74cce57d6b.tar.gz
opie-8f11eb1712eb8f9d83f0ace551e72e74cce57d6b.tar.bz2
ipaq->root, ipaq/opiealarm->core/opiealarm
Diffstat (limited to 'mkipks') (more/less context) (ignore whitespace changes)
-rwxr-xr-xmkipks6
1 files changed, 3 insertions, 3 deletions
diff --git a/mkipks b/mkipks
index ca934d8..798e73f 100755
--- a/mkipks
+++ b/mkipks
@@ -1,37 +1,37 @@
1#!/bin/sh 1#!/bin/sh
2 2
3QTE_VERSION=2.3.4 3QTE_VERSION=2.3.4
4DEB_VERSION=2.0 4DEB_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
7mkdir -p $OPIEDIR/etc/rc2.d 7mkdir -p $OPIEDIR/etc/rc2.d
8ln -sf ../init.d/opie $OPIEDIR/etc/rc2.d/S98opie 8ln -sf ../init.d/opie $OPIEDIR/etc/rc2.d/S98opie
9 9
10mkdir -p $OPIEDIR/etc/rcS.d 10mkdir -p $OPIEDIR/etc/rcS.d
11ln -sf ../init.d/bootsplash $OPIEDIR/etc/rcS.d/S01bootsplash 11ln -sf ../init.d/bootsplash $OPIEDIR/etc/rcS.d/S01bootsplash
12 12
13ln -sf ../init.d/opieatd $OPIEDIR/ipaq/etc/rc2.d/S96opieatd 13ln -sf ../init.d/opieatd $OPIEDIR/root/etc/rc2.d/S96opieatd
14 14
15 15
16 16
17VERSION_MAJ=$(sed -n -e 's/.*QPE_VERSION "\([0-9]*\)\..*\..*".*/\1/p' <$OPIEDIR/include/qpe/version.h) 17VERSION_MAJ=$(sed -n -e 's/.*QPE_VERSION "\([0-9]*\)\..*\..*".*/\1/p' <$OPIEDIR/include/qpe/version.h)
18VERSION_MIN=$(sed -n -e 's/.*QPE_VERSION ".*\.\([0-9]*\)\..*".*/\1/p' <$OPIEDIR/include/qpe/version.h) 18VERSION_MIN=$(sed -n -e 's/.*QPE_VERSION ".*\.\([0-9]*\)\..*".*/\1/p' <$OPIEDIR/include/qpe/version.h)
19VERSION_PAT=$(sed -n -e 's/.*QPE_VERSION ".*\..*\.\([0-9]*\).*/\1/p' <$OPIEDIR/include/qpe/version.h) 19VERSION_PAT=$(sed -n -e 's/.*QPE_VERSION ".*\..*\.\([0-9]*\).*/\1/p' <$OPIEDIR/include/qpe/version.h)
20SUB_VERSION=$(sed -n -e 's,.*SUB_VERSION \"\(.*\)\".*,\1,p' <$OPIEDIR/include/qpe/version.h) 20SUB_VERSION=$(sed -n -e 's,.*SUB_VERSION \"\(.*\)\".*,\1,p' <$OPIEDIR/include/qpe/version.h)
21if grep -q 'QPE_VERSION .*snapshot' $OPIEDIR/include/qpe/version.h 21if grep -q 'QPE_VERSION .*snapshot' $OPIEDIR/include/qpe/version.h
22then 22then
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
25else 25else
26 VERSION_CVS="" 26 VERSION_CVS=""
27fi 27fi
28 28
29QPE_VERSION=$VERSION_MAJ.$VERSION_MIN.$VERSION_PAT 29QPE_VERSION=$VERSION_MAJ.$VERSION_MIN.$VERSION_PAT
30 30
31ARCH=arm 31ARCH=arm
32STRIP=arm-linux-strip 32STRIP=arm-linux-strip
33STRIP_FILES="*ARM*not stripped" 33STRIP_FILES="*ARM*not stripped"
34 34
35TDIR=/tmp/ipk$$ 35TDIR=/tmp/ipk$$
36DATADIR=$TDIR 36DATADIR=$TDIR
37CTRLDIR=$TDIR/CONTROL 37CTRLDIR=$TDIR/CONTROL
@@ -109,50 +109,50 @@ do
109 then 109 then
110 mkdir -p $DATADIR/usr/share/doc/$packagename 110 mkdir -p $DATADIR/usr/share/doc/$packagename
111 else 111 else
112 for f in $files 112 for f in $files
113 do 113 do
114 if [ -d $f ] 114 if [ -d $f ]
115 then 115 then
116 ffiles=$(find $f -type f -o -type b -o -type c -o -type l) 116 ffiles=$(find $f -type f -o -type b -o -type c -o -type l)
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
151 if [ -n "$RPM" ] 151 if [ -n "$RPM" ]
152 then 152 then
153 case "$ff" in 153 case "$ff" in
154 /*) RPMFILES="$RPMFILES $ff" 154 /*) RPMFILES="$RPMFILES $ff"
155 ;; *) RPMFILES="$RPMFILES $OPIEDIR/$ff" 155 ;; *) RPMFILES="$RPMFILES $OPIEDIR/$ff"
156 esac 156 esac
157 else 157 else
158 mkdir -p $D 158 mkdir -p $D