summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rwxr-xr-xmkipks29
1 files changed, 3 insertions, 26 deletions
diff --git a/mkipks b/mkipks
index 982a007..63d1e22 100755
--- a/mkipks
+++ b/mkipks
@@ -57,3 +57,3 @@ do
;; -classic)
- CLASSIC=1
+ classicopts=-c
;; -rpm)
@@ -79,8 +79,2 @@ done
-if [ -n "$CLASSIC" ]
-then
- DATADIR=$TDIR/data
- CTRLDIR=$TDIR/control
-fi
-
if [ -z "$FILES" ]
@@ -220,3 +214,3 @@ do
egrep -v "^(Files|Version|Depends|Provides|Conflicts|Architecture):" >>$CTRLDIR/control $i
- [ -n "$CLASSIC" ] && echo "$DEB_VERSION" >$TDIR/debian-binary
+ [ -n "$classicopts" ] && echo "$DEB_VERSION" >$TDIR/debian-binary
base=${i%.control}
@@ -230,20 +224,3 @@ do
done
- if [ -z "$CLASSIC" ]
- then
- cd $ORIGDIR; $OPIEDIR/scripts/ipkg-build -o root -g root $TDIR; cd $OPIEDIR;
- else
- if [ "`id -u`" != "0" ]
- then
- if [ -z "$ROOTWARNED" ]
- then
- echo Warning. You are not root. Please become root or use fakeroot.
- ROOTWARNED=1
- fi
- else
- chown -R root.root $TDIR/*
- fi
- ( cd $DATADIR && tar -czf $TDIR/data.tar.gz * )
- ( cd $CTRLDIR && tar -czf $TDIR/control.tar.gz * )
- ( cd $TDIR && tar -czf $OPIEDIR/$package.ipk ./control.tar.gz ./data.tar.gz ./debian-binary )
- fi
+ cd $ORIGDIR; $OPIEDIR/scripts/ipkg-build $classicopts -o root -g root $TDIR; cd $OPIEDIR;
RESULT=$package.ipk