From 15318cad33835e4e2dc620d033e43cd930676cdd Mon Sep 17 00:00:00 2001 From: kergoth Date: Fri, 25 Jan 2002 22:14:26 +0000 Subject: Initial revision --- (limited to 'scripts/mkPackages') 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 -- cgit v0.9.0.2