#!/bin/sh
SOURCE=/public/html/fatdogscm/contrib
TARGET=/public/distributions/fatdog/contrib
mv $SOURCE/*.pet $TARGET/pets/600
mv $SOURCE/*.sfs $TARGET/sfs/600
[ $SOURCE/upload-log -nt $TARGET/upload-log-600.txt ] &&
cp $SOURCE/upload-log $TARGET/upload-log-600.txt
mv ${SOURCE}700/*.t?z $TARGET/packages/700
mv ${SOURCE}700/*.sfs $TARGET/sfs/700
[ ${SOURCE}700/upload-log -nt $TARGET/upload-log-700.txt ] &&
cp ${SOURCE}700/upload-log $TARGET/upload-log-700.txt
mv ${SOURCE}710/*.t?z $TARGET/packages/710
mv ${SOURCE}710/*.sfs $TARGET/sfs/710
[ ${SOURCE}710/upload-log -nt $TARGET/upload-log-710.txt ] &&
cp ${SOURCE}710/upload-log $TARGET/upload-log-710.txt
mv ${SOURCE}800/*.t?z $TARGET/packages/800
mv ${SOURCE}800/*.sfs $TARGET/sfs/800
[ ${SOURCE}800/upload-log -nt $TARGET/upload-log-800 ] &&
cp ${SOURCE}800/upload-log $TARGET/upload-log-800
#cd $TARGET/pets/600; ./update-pkglist
cd $TARGET/sfs/600; ./update-sfslist
cd $TARGET/packages/700; ./update-pkglist
cd $TARGET/sfs/700; ./update-sfslist
cd $TARGET/packages/710; ./update-pkglist
cd $TARGET/sfs/710; ./update-sfslist
cd $TARGET/packages/800; ./update-pkglist
cd $TARGET/sfs/800; ./update-sfslist