summaryrefslogtreecommitdiff
path: root/scripts/mkPackages
Unidiff
Diffstat (limited to 'scripts/mkPackages') (more/less context) (ignore whitespace changes)
-rwxr-xr-xscripts/mkPackages1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/mkPackages b/scripts/mkPackages
index 06d2281..b37aa10 100755
--- a/scripts/mkPackages
+++ b/scripts/mkPackages
@@ -1,26 +1,27 @@
1#!/bin/sh 1#!/bin/sh
2 2
3for i in *.ipk 3for i in *.ipk
4do 4do
5 packagename=${i%%_*} 5 packagename=${i%%_*}
6 #echo >&2 "$packagename..." 6 #echo >&2 "$packagename..."
7 GOOD=y 7 GOOD=y
8 for other in ${packagename}_* 8 for other in ${packagename}_*
9 do 9 do
10 if [ $i != $other -a $other -nt $i ] 10 if [ $i != $other -a $other -nt $i ]
11 then 11 then
12 GOOD= 12 GOOD=
13 break 13 break
14 fi 14 fi
15 done 15 done
16 if [ -n "$GOOD" ] 16 if [ -n "$GOOD" ]
17 then 17 then
18 # tar xfOz $i ./control.tar.gz | tar xfOz - ./control 18 # tar xfOz $i ./control.tar.gz | tar xfOz - ./control
19 # new version of ipkg uses ar instead of tar 19 # new version of ipkg uses ar instead of tar
20 echo "Filename: $i"
20 ar pf $i control.tar.gz | tar xfOz - ./control 21 ar pf $i control.tar.gz | tar xfOz - ./control
21 echo 22 echo
22 else 23 else
23 echo >&2 "Skipped old file: $i ($other is newer)" 24 echo >&2 "Skipped old file: $i ($other is newer)"
24 #mv $i old 25 #mv $i old
25 fi 26 fi
26done >Packages 27done >Packages