/[clonezilla-sysresccd]/trunk/www/working/scripts/2site
ViewVC logotype

Diff of /trunk/www/working/scripts/2site

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

revision 42 by sng, Tue May 18 14:22:00 2010 UTC revision 44 by sng, Wed May 19 11:49:25 2010 UTC
# Line 19  Line 19 
19  # along with Clonezilla-SysRescCD. If not, see <http://www.gnu.org/licenses/>.  # along with Clonezilla-SysRescCD. If not, see <http://www.gnu.org/licenses/>.
20  #  #
21  ####################################################################################  ####################################################################################
 cd ..  
 cd ..  
 echo 'Creating files'  
 echo -n "  template.html...   "  
 myDate=`sed -n '1p' working/release-data `  
 myVersion=`sed -n '2p' working/release-data `  
 thisDate=`date '+%d/%m/%Y'`  
22    
23    
24    ####################################################################################
25    # Configuration section
26    #
27    # Set whereIsTheISO to the location of current Clonezilla-SysRescCD ISO file
28    # Set whereIsTheTarBall to the location of current Clonezilla-SysRescCD TGZ file
29  whereIsTheISO=/e/clonezilla-sysresccd-full-mod-"$myVersion"/clonezilla-sysresccd-full-mod-"$myVersion".iso  whereIsTheISO=/e/clonezilla-sysresccd-full-mod-"$myVersion"/clonezilla-sysresccd-full-mod-"$myVersion".iso
30  whereIsTheISO=/e/clonezilla-sysresccd-full-mod-"$myVersion".iso  whereIsTheISO=/e/clonezilla-sysresccd-full-mod-"$myVersion".iso
31    
32  whereIsTheTarBall=/home/spiros/multibootcd/create-clonezilla-sysresccd-"$myVersion".tar.gz  whereIsTheTarBall=/home/spiros/multibootcd/create-clonezilla-sysresccd-"$myVersion".tar.gz
33    
34  # . "$HOME/.2site.conf"  ####################################################################################
35  [ -e "$whereIsTheISO" ] && isoSize=$(du -h "$whereIsTheISO" | sed "s|/.*||" |sed 's|\([kMG]\).*| \1|') || {  
   echo "    Error: The variable \"whereIsTheISO\" is invalid  
                    Please edit your ~/.2site.conf file"  
 #   exit 1  
 }  
36    
37    ####################################################################################
38    #                             Script starts here                                   #
39    ####################################################################################
40    cd ..
41    cd ..
42    echo 'Creating files'
43    echo -n "  template.html...   "
44    myDate=`sed -n '1p' working/release-data `
45    myVersion=`sed -n '2p' working/release-data `
46    thisDate=`date '+%d/%m/%Y'`
47  md5sum="$(echo "$whereIsTheISO" | sed 's|/[^/]*$|/md5sum.txt|')"  md5sum="$(echo "$whereIsTheISO" | sed 's|/[^/]*$|/md5sum.txt|')"
48  md5sum="$(cat "$md5sum")"  md5sum="$(cat "$md5sum")"
49    

Legend:
Removed from v.42  
changed lines
  Added in v.44

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26