summaryrefslogtreecommitdiff
path: root/mkipks
authorkergoth <kergoth>2002-12-12 17:17:29 (UTC)
committer kergoth <kergoth>2002-12-12 17:17:29 (UTC)
commit4789fc5908e0f6e5f828e1069b3fa5c7dad1412c (patch) (side-by-side diff)
tree2cfaa10b1fd54f22a57698620ea12fdb71f9eda5 /mkipks
parent2ebde078dcdc50434acb10f2fa245b0d3dd483bd (diff)
downloadopie-4789fc5908e0f6e5f828e1069b3fa5c7dad1412c.zip
opie-4789fc5908e0f6e5f828e1069b3fa5c7dad1412c.tar.gz
opie-4789fc5908e0f6e5f828e1069b3fa5c7dad1412c.tar.bz2
make passing in qte version for ipk creation easier
Diffstat (limited to 'mkipks') (more/less context) (ignore whitespace changes)
-rwxr-xr-xmkipks3
1 files changed, 2 insertions, 1 deletions
diff --git a/mkipks b/mkipks
index c39b66f..97f78c5 100755
--- a/mkipks
+++ b/mkipks
@@ -1,51 +1,52 @@
#!/bin/sh
-QTE_VERSION=2.3.4
+[ -z "$QTE_VERSION" ] && QTE_VERSION=2.3.4
+[ -z "$QTE_REVISION" ] && QTE_REVISION=3
DEB_VERSION=2.0
# Have to do this here, since CVS can't store symlinks
mkdir -p $OPIEDIR/etc/rcS.d
ln -sf ../init.d/bootsplash $OPIEDIR/etc/rcS.d/S01bootsplash
VERSION_MAJ=$(sed -n -e 's/.*QPE_VERSION "\([0-9]*\)\..*\..*".*/\1/p' <$OPIEDIR/include/qpe/version.h)
VERSION_MIN=$(sed -n -e 's/.*QPE_VERSION ".*\.\([0-9]*\)\..*".*/\1/p' <$OPIEDIR/include/qpe/version.h)
VERSION_PAT=$(sed -n -e 's/.*QPE_VERSION ".*\..*\.\([0-9]*\).*/\1/p' <$OPIEDIR/include/qpe/version.h)
SUB_VERSION=$(sed -n -e 's,.*SUB_VERSION \"\(.*\)\".*,\1,p' <$OPIEDIR/include/qpe/version.h)
if grep -q 'QPE_VERSION .*snapshot' $OPIEDIR/include/qpe/version.h
then
[ -z "$VERSION_CVS" ] && VERSION_CVS="$(date +%Y%m%d)"
SUB_VERSION=$VERSION_CVS
else
VERSION_CVS=""
fi
QPE_VERSION=$VERSION_MAJ.$VERSION_MIN.$VERSION_PAT
ARCH=arm
STRIP=arm-linux-strip
STRIP_FILES="*ARM*not stripped"
TDIR=/tmp/ipk$$
DATADIR=$TDIR
CTRLDIR=$TDIR/CONTROL
IMAGEDIR=
VERB=
LIST=
RPM=
while [ $# -ne 0 ]
do
case "$1" in
-v)
VERB=1
echo >&2 "Packaging for version $VERSION_MAJ.$VERSION_MIN.$VERSION_PAT$VERSION_CVS"
;; -l)
LIST=1
;; -i)
shift
IMAGEDIR=$1
DATADIR=$IMAGEDIR
mkdir -p $IMAGEDIR
;; -classic)