--- trunk/www/working/scripts/create-iso-tree 2010/08/16 12:06:10 98 +++ trunk/www/working/scripts/create-iso-tree 2010/08/16 13:00:26 99 @@ -10,6 +10,11 @@ OUT_DIR=/e fi +TGZ_DIR="$2" +if [ -z "$TGZ_DIR" ];then + TGZ_DIR=/home/spiros/clonezilla-sysresccd/trunk/create-clonezilla-sysresccd +fi + # clean output folder rm -rf /root/tmp/clonezilla-sysresccd/clonezilla*.iso 2>/dev/null for n in 0 1 2;do @@ -62,3 +67,13 @@ } done + +# create tgz file +cd "$TGZ_DIR" +make dist || { + echo "Error on make dist..." + exit 1 +} && { + rm "$OUT_DIR"/*z 2>/dev/null + cp "$TGZ_DIR"/create-clonezilla-sysresccd-"$VERSION".tar.gz "$OUT_DIR" +}