=================================================================== RCS file: /cvs/openbsd/OpenBSDTorrents/regen.sh,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- openbsd/OpenBSDTorrents/regen.sh 2005/03/25 02:21:44 1.2 +++ openbsd/OpenBSDTorrents/regen.sh 2005/03/28 23:39:40 1.3 @@ -1,6 +1,22 @@ #!/bin/sh -MakeTorrents.pl $@ -CurrentTorrents.pl -lftp -f lftp.script -ServerTorrents.pl +BASEDIR=/home/OpenBSDTorrents +TORRENTDIR=/home/torrentsync/torrents + +cd ${BASEDIR} + +if [[ $1 != skip ]]; then + echo ${BASEDIR}/MakeTorrents.pl $* + ${BASEDIR}/MakeTorrents.pl $* +fi + +echo ${BASEDIR}/CurrentTorrents.pl +${BASEDIR}/CurrentTorrents.pl + +if [ $? != 253 ]; then + echo lftp -f ${BASEDIR}/lftp.script + lftp -f ${TORRENTDIR}/lftp.script + + echo ${BASEDIR}/ServerTorrents.pl + ${BASEDIR}/ServerTorrents.pl +fi