summaryrefslogtreecommitdiff
path: root/scripts/mkPackages
authorkergoth <kergoth>2002-01-25 22:14:26 (UTC)
committer kergoth <kergoth>2002-01-25 22:14:26 (UTC)
commit15318cad33835e4e2dc620d033e43cd930676cdd (patch) (unidiff)
treec2fa0399a2c47fda8e2cd0092c73a809d17f68eb /scripts/mkPackages
downloadopie-15318cad33835e4e2dc620d033e43cd930676cdd.zip
opie-15318cad33835e4e2dc620d033e43cd930676cdd.tar.gz
opie-15318cad33835e4e2dc620d033e43cd930676cdd.tar.bz2
Initial revision
Diffstat (limited to 'scripts/mkPackages') (more/less context) (ignore whitespace changes)
-rwxr-xr-xscripts/mkPackages24
1 files changed, 24 insertions, 0 deletions
diff --git a/scripts/mkPackages b/scripts/mkPackages
new file mode 100755
index 0000000..5734f1c
--- a/dev/null
+++ b/scripts/mkPackages
@@ -0,0 +1,24 @@
1#!/bin/sh
2
3for i in *.ipk
4do
5 packagename=${i%%_*}
6 #echo >&2 "$packagename..."
7 GOOD=y
8 for other in ${packagename}_*
9 do
10 if [ $i != $other -a $other -nt $i ]
11 then
12 GOOD=
13 break
14 fi
15 done
16 if [ -n "$GOOD" ]
17 then
18 tar xfOz $i ./control.tar.gz | tar xfOz - ./control
19 echo
20 else
21 echo >&2 "Skipped old file: $i ($other is newer)"
22 #mv $i old
23 fi
24done >Packages