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