summaryrefslogtreecommitdiff
path: root/scripts/mkPackages
Side-by-side diff
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 @@
+#!/bin/sh
+
+for i in *.ipk
+do
+ packagename=${i%%_*}
+ #echo >&2 "$packagename..."
+ GOOD=y
+ for other in ${packagename}_*
+ do
+ if [ $i != $other -a $other -nt $i ]
+ then
+ GOOD=
+ break
+ fi
+ done
+ if [ -n "$GOOD" ]
+ then
+ tar xfOz $i ./control.tar.gz | tar xfOz - ./control
+ echo
+ else
+ echo >&2 "Skipped old file: $i ($other is newer)"
+ #mv $i old
+ fi
+done >Packages