Build iso.sh

From The Document Foundation Wiki
Jump to: navigation, search
#!/bin/bash

# calls build_iso.pl and creates reports
# © 2011 Friedrich Strohmaier <bitsfritz@documentfoundation.org>

isoname=`basename $0`
date=`date -u --rfc-3339=date`
date+=`date -u +_%H.%M.%S`

# hack if no argument given
arg1="empty"
test $1 && arg1=$1

actiondir=/groups/libox
report=$actiondir/reports/$isoname-$date.msg

# ISO erstellen
perl $actiondir/bin/build_iso.pl $arg1 $isoname 2>&1 | tee $report