root/floppyfw/scripts/copy_packages.sh

Revision 208, 483 bytes (checked in by root, 5 years ago)

A big commit. Not finished with the testing and no idea if this works well enough or at all.

  • Property svn:executable set to *
Line 
1#!/bin/sh
2
3SRC_PACKAGES_DIR=$1
4DEST_PACKAGES_DIR=$2
5
6[ -d $DEST_PACKAGES_DIR ] || mkdir -p $DEST_PACKAGES_DIR
7
8for p in $SRC_PACKAGES_DIR/*.ffw
9 do
10  name=`echo $p | sed -e 's/.*\///'`
11  name=`echo $name | sed -e 's/\..*//'`
12echo "Copying $name"
13  mkdir -p $DEST_PACKAGES_DIR/$name
14  cp /floppyfw/packages/$name.ffw $DEST_PACKAGES_DIR/$name/.
15  cp /floppyfw/packages/$name.bz2 $PACKAGES_DIR/$name/.
16  cp /floppyfw/packages/scripts/*$name* $DEST_PACKAGES_DIR/$name/. 2>/dev/null
17done
Note: See TracBrowser for help on using the browser.