author | kergoth <kergoth> | 2002-12-12 17:17:29 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2002-12-12 17:17:29 (UTC) |
commit | 4789fc5908e0f6e5f828e1069b3fa5c7dad1412c (patch) (side-by-side diff) | |
tree | 2cfaa10b1fd54f22a57698620ea12fdb71f9eda5 /mkipks | |
parent | 2ebde078dcdc50434acb10f2fa245b0d3dd483bd (diff) | |
download | opie-4789fc5908e0f6e5f828e1069b3fa5c7dad1412c.zip opie-4789fc5908e0f6e5f828e1069b3fa5c7dad1412c.tar.gz opie-4789fc5908e0f6e5f828e1069b3fa5c7dad1412c.tar.bz2 |
make passing in qte version for ipk creation easier
-rwxr-xr-x | mkipks | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) |