]> Zhao Yanbai Git Server - minix.git/commitdiff
Include binary packages on cd.
authorBen Gras <ben@minix3.org>
Thu, 2 Feb 2006 17:11:10 +0000 (17:11 +0000)
committerBen Gras <ben@minix3.org>
Thu, 2 Feb 2006 17:11:10 +0000 (17:11 +0000)
tools/release.sh

index 98bba1bd1fe567b56ef667e56ba8b46c090dfc63..9db55896a45f4eb2c3154464d2f3f68e58ce8020 100755 (executable)
@@ -1,5 +1,6 @@
 #!/bin/sh
 
+PACKAGEDIR=/usr/bigports/Packages
 secs=`expr 32 '*' 64`
 
 make_hdimage()
@@ -259,6 +260,20 @@ sh mkboot cdfdboot
 cp $IMAGE $CDFILES/bootflop.img
 cp release/cd/* $CDFILES
 
+DESTPACKAGES=`pwd`/release/cd/Packages
+rm -rf $DESTPACKAGES
+mkdir $DESTPACKAGES
+
+( cd $PACKAGEDIR
+  for f in *tar*
+  do
+       shortname="`echo $f | sed 's/\.tar\..*//' | tr -dc '[a-z][A-z][0-9]' | sed 's/^\(........\).*/\1/' | tr '[a-z]' '[A-Z]'`.TBZ"
+       cp $f $DESTPACKAGES/$shortname
+       echo $shortname $f >>$DESTPACKAGES/List
+       echo " * Copied $f to $shortname"
+  done
+)
+
 h_opt=
 bootimage=$IMAGE
 if [ "$HDEMU" -ne 0 ]; then