/[clonezilla-sysresccd]/trunk/www/working/scripts/create-iso-tree
ViewVC logotype

Diff of /trunk/www/working/scripts/create-iso-tree

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 97 by sng, Sun Aug 15 19:57:21 2010 UTC revision 110 by sng, Wed Sep 15 12:51:06 2010 UTC
# Line 10  if [ -z "$OUT_DIR" ];then Line 10  if [ -z "$OUT_DIR" ];then
10      OUT_DIR=/e      OUT_DIR=/e
11  fi  fi
12    
13    TGZ_DIR="$2"
14    if [ -z "$TGZ_DIR" ];then
15        TGZ_DIR=/home/spiros/clonezilla-sysresccd/trunk/create-clonezilla-sysresccd
16    fi
17    
18    
19    unset VERSION
20    VERSION=`sed '2!d' ../release-data`
21    
22    
23  # clean output folder  # clean output folder
24  rm -rf /root/tmp/clonezilla-sysresccd/clonezilla*.iso 2>/dev/null  rm -rf /root/tmp/clonezilla-sysresccd/clonezilla*.iso 2>/dev/null
25  for n in 0 1 2;do  for n in 0 1 2;do
# Line 20  done Line 30  done
30  clear  clear
31    
32    
 unset VERSION  
33  for ISO in  `find /root/tmp/ -name "clonezilla-sysresccd*.iso"`;do  for ISO in  `find /root/tmp/ -name "clonezilla-sysresccd*.iso"`;do
34      FILE=`basename ${ISO}`      FILE=`basename ${ISO}`
35      ISO_DIR=`echo "$FILE" | sed 's|.iso$||'`      ISO_DIR=`echo "$FILE" | sed 's|.iso$||'`
# Line 62  for ISO in  `find /root/tmp/ -name "clon Line 71  for ISO in  `find /root/tmp/ -name "clon
71      }      }
72            
73  done  done
74    
75    # create tgz file
76    echo "
77    
78    
79    VERSION=$VERSION
80    
81    Creating TARBALL...
82    "
83    cd "$TGZ_DIR"
84    make clean
85    make dist || {
86        echo "
87        
88        
89        Error on make dist..."
90        exit 1
91    } && {
92        rm "$OUT_DIR"/clonezilla-sysresccd-"$VERSION"/*z 2>/dev/null
93        cp "$TGZ_DIR"/create-clonezilla-sysresccd-"$VERSION".tar.gz "$OUT_DIR"/clonezilla-sysresccd-"$VERSION"
94    }

Legend:
Removed from v.97  
changed lines
  Added in v.110

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26