X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=grml-live;h=cfbc0b385dd0f3bbd3e67d599b5420a2c4c0a8ef;hb=23cf986bbbe07226ff1d48ef547298541c00fe9a;hp=58dc908bf97e4325adc85a9630ba6652443fcf73;hpb=c2a9db7180463fe3fc457107301dca487a18a018;p=grml-live.git diff --git a/grml-live b/grml-live index 58dc908..cfbc0b3 100755 --- a/grml-live +++ b/grml-live @@ -39,7 +39,7 @@ Usage: $PN [options, see as follows] -o main output directory of the build process -q skip mksquashfs -r Debian suite; values: etch, lenny, sid + -s Debian suite; values: etch, lenny, squeeze, sid -t place of the templates -u update existing chroot instead of rebuilding it from scratch -v specify version number of the release @@ -356,7 +356,7 @@ if [ -n "$SUITE" ] ; then for file in "$LIVE_CONF" "$CONFIG" "$LOCAL_CONFIG" ; do if [ -n "$file" ] ; then sed -i "s/SUITE=.*/SUITE=\"$SUITE\"/" $LIVE_CONF - DIST="\|\ etch\ \|\ stable\ \|\ lenny\ \|\ testing\ \|\ sid\ \|\ unstable\ " + DIST="\|\ etch\ \|\ stable\ \|\ lenny\ \|\ squeeze \|\ testing\ \|\ sid\ \|\ unstable\ " sed -i "s/\(deb .\+\)\([ \t]+\)$DIST\([ \t]+\)\(main \)/\1\2 $SUITE \3\4/" $file fi done @@ -702,12 +702,17 @@ else -b $BOOT_FILE \ -o "${ISO_OUTPUT}/${ISO_NAME}" . ; RC=$? - # generate md5sum of ISO if we are using class 'RELEASE': + # generate md5sum and sha1sum of ISO if we are using class 'RELEASE': case $CLASSES in *RELEASE*) [ "$RC" = 0 ] && \ - ( cd $ISO_OUTPUT && \ - md5sum ${ISO_NAME} > ${ISO_NAME}.md5 && \ - touch -r ${ISO_NAME} ${ISO_NAME}.md5 ) + ( + if cd $ISO_OUTPUT ; then + md5sum ${ISO_NAME} > ${ISO_NAME}.md5 && \ + touch -r ${ISO_NAME} ${ISO_NAME}.md5 + sha1sum ${ISO_NAME} > ${ISO_NAME}.sha1 && \ + touch -r ${ISO_NAME} ${ISO_NAME}.sha1 + fi + ) ;; esac