Author: hawk Date: Wed Mar 22 17:20:40 2006 GMT Module: admin Tag: AC-branch ---- Log message: - enhanced a bit, adjusted for Ac
---- Files affected: admin/ftp: geniso-SRPMS (1.1 -> 1.1.2.1) ---- Diffs: ================================================================ Index: admin/ftp/geniso-SRPMS diff -u admin/ftp/geniso-SRPMS:1.1 admin/ftp/geniso-SRPMS:1.1.2.1 --- admin/ftp/geniso-SRPMS:1.1 Mon Apr 8 12:15:27 2002 +++ admin/ftp/geniso-SRPMS Wed Mar 22 18:20:35 2006 @@ -1,7 +1,15 @@ #!/bin/bash -ROOT=/home/ftp/pub/Linux/PLD -SRPMS=$ROOT/PLD-1.0/SRPMS +ROOT="/pld/ftp" +VERSION="2.0" +SUBVER="RC1" + +MKISOFS="/usr/bin/mkisofs" + +ISOTARGET="/pld/ftp" + +SRPMS="$ROOT/dists/$VERSION/PLD/SRPMS" + size=0 fileno=1 iso_size=`expr 1024 \* 1024 \* 650` @@ -35,7 +43,14 @@ calc_size ./ for i in /tmp/cd*.links ; do num=`echo $i | sed 's/\/tmp\/cd\([0-9]\+\)\.links/\1/'` - $ROOT/.stat/bin/mkisofs -o $ROOT/iso/ra/SRPMS/pld-SRPMS${num}.iso -f -r -J -f $i || rm -f $ROOT/iso/ra/SRPMS/pld-SRPMS${num}.iso - (cd $ROOT/iso/ra/SRPMS ; md5sum pld-SRPMS${num}.iso > pld-SRPMS${num}.md5; $ROOT/.stat/bin/isoinfo -R -l -i pld-SRPMS${num}.iso > pld-SRPMS${num}.ls) + + ISONAME="pld-${VERSION}-${SUBVER}-CD${num}.SRPMS.iso" + ${MKISOFS} -o ${ISOTARGET}/iso/${VERSION}/SRPMS/${ISONAME} \ + -f -r -J -f $i || rm -f ${ISOTARGET}/iso/${VERSION}/SRPMS/${ISONAME} + + echo "Generating ls and md5sum for ${ISONAME}.iso" + cd ${ISOTARGET}/iso/${DIST}/${ARCH} + /usr/bin/isoinfo -R -l -i ${ISONAME}.iso > ${ISONAME}.ls + md5sum ${ISONAME}.iso >> pld-${VERSION}-${SUBVER}.SRPMS.md5 done rm -fr /tmp/cd*.links ================================================================ ---- CVS-web: http://cvs.pld-linux.org/admin/ftp/geniso-SRPMS?r1=1.1&r2=1.1.2.1&f=u _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit