26 |
# |
# |
27 |
# Set whereIsTheISO to the location of current Clonezilla-SysRescCD ISO file |
# Set whereIsTheISO to the location of current Clonezilla-SysRescCD ISO file |
28 |
# Set whereIsTheTarBall to the location of current Clonezilla-SysRescCD TGZ file |
# 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-"$myVersion" |
|
whereIsTheISO=/e/clonezilla-sysresccd-full-mod-"$myVersion".iso |
|
|
|
|
|
whereIsTheTarBall=/home/spiros/multibootcd/create-clonezilla-sysresccd-"$myVersion".tar.gz |
|
30 |
|
|
31 |
############################################################################## |
############################################################################## |
32 |
# Script starts here # |
# Script starts here # |
33 |
############################################################################## |
############################################################################## |
34 |
|
while getopts "d:" Option |
35 |
|
do |
36 |
|
case $Option in |
37 |
|
d) thisDate="$OPTARG" |
38 |
|
;; |
39 |
|
esac |
40 |
|
done |
41 |
|
./pack-them |
42 |
|
|
43 |
|
|
44 |
# Go to www/ directory |
# Go to www/ directory |
45 |
cd .. |
cd .. |
48 |
echo -n " template.html... " |
echo -n " template.html... " |
49 |
myDate=`sed -n '1p' working/release-data ` |
myDate=`sed -n '1p' working/release-data ` |
50 |
myVersion=`sed -n '2p' working/release-data ` |
myVersion=`sed -n '2p' working/release-data ` |
51 |
thisDate=`date '+%d/%m/%Y'` |
if [ -z "$thisDate" ];then |
52 |
md5sum="$(echo "$whereIsTheISO" | sed 's|/[^/]*$|/md5sum.txt|')" |
thisDate=`date '+%d/%m/%Y'` |
53 |
md5sum="$(cat "$md5sum")" |
fi |
54 |
|
|
55 |
|
whereIsTheISO="$whereIsTheISO""$myVersion" |
56 |
|
whereIsTheTarBall="$whereIsTheISO"/create-clonezilla-sysresccd-"$myVersion".tar.gz |
57 |
|
ISO_I686_SIZE=`du -h "$whereIsTheISO"/clonezilla-sysresccd-i686-"$myVersion"/clonezilla-sysresccd-i686-"$myVersion".iso | sed 's|[ \t].*||'` |
58 |
|
ISO_I686_MD5=`cat "$whereIsTheISO"/clonezilla-sysresccd-i686-"$myVersion"/md5sum.txt | sed 's|[ \t].*||'` |
59 |
|
ISO_AMD64_SIZE=`du -h "$whereIsTheISO"/clonezilla-sysresccd-amd64-"$myVersion"/clonezilla-sysresccd-amd64-"$myVersion".iso | sed 's|[ \t].*||'` |
60 |
|
ISO_AMD64_MD5=`cat "$whereIsTheISO"/clonezilla-sysresccd-amd64-"$myVersion"/md5sum.txt | sed 's|[ \t].*||'` |
61 |
|
ISO_I486_SIZE=`du -h "$whereIsTheISO"/clonezilla-sysresccd-i486-"$myVersion"/clonezilla-sysresccd-i486-"$myVersion".iso | sed 's|[ \t].*||'` |
62 |
|
ISO_I486_MD5=`cat "$whereIsTheISO"/clonezilla-sysresccd-i486-"$myVersion"/md5sum.txt | sed 's|[ \t].*||'` |
63 |
|
|
64 |
tarballSize=$(du -h "$whereIsTheTarBall" | sed "s|/.*||" |sed 's|\([kMG]\).*| \1|') |
tarballSize=$(du -h "$whereIsTheTarBall" | sed "s|/.*||" |sed 's|\([kMG]\).*| \1|') |
65 |
isoSizeEN=$(echo "$isoSize" | sed 's|,|.|') |
isoSizeEN=$(echo "$isoSize" | sed 's|,|.|') |
69 |
|
|
70 |
|
|
71 |
|
|
|
|
|
72 |
tr -d '\n' < working/clonezilla-sysresccd.rss | sed 's|<[tT][iI][tT][lL][eE]>|\n<title>|g' | sed 's|</[pP][uU][bB][Dd][aA][tT][eE]>|</pubDate>\n|g' | grep '<title>' > /tmp/iaa.$$ |
tr -d '\n' < working/clonezilla-sysresccd.rss | sed 's|<[tT][iI][tT][lL][eE]>|\n<title>|g' | sed 's|</[pP][uU][bB][Dd][aA][tT][eE]>|</pubDate>\n|g' | grep '<title>' > /tmp/iaa.$$ |
73 |
|
|
74 |
rm /tmp/aai.$$ 2>/dev/null |
rm /tmp/aai.$$ 2>/dev/null |
104 |
|
|
105 |
echo 'done' |
echo 'done' |
106 |
|
|
107 |
|
|
108 |
############################################################################# |
############################################################################# |
109 |
# # |
# # |
110 |
# Create news.php # |
# Create news.php # |
207 |
s/<!--txt-only-->.*<!--end-txt-only-->//' tpm.$$ | sed 's| $||' | sed "s|\"myTitle\"|$myTitle| |
s/<!--txt-only-->.*<!--end-txt-only-->//' tpm.$$ | sed 's| $||' | sed "s|\"myTitle\"|$myTitle| |
208 |
s|\"myVersion\"|$myVersion|g |
s|\"myVersion\"|$myVersion|g |
209 |
s|TARBALL_SIZE|$tarballSizeEN|g |
s|TARBALL_SIZE|$tarballSizeEN|g |
210 |
s|ISO_SIZE|$isoSizeEN|g |
|
211 |
s|\"MD5SUM\"|$md5sum| |
s{ISO_I686_SIZE{$ISO_I686_SIZE{g |
212 |
|
s{ISO_I686_MD5{$ISO_I686_MD5{g |
213 |
|
s{ISO_I486_SIZE{$ISO_I486_SIZE{g |
214 |
|
s{ISO_I486_MD5{$ISO_I486_MD5{g |
215 |
|
s{ISO_AMD64_SIZE{$ISO_AMD64_SIZE{g |
216 |
|
s{ISO_AMD64_MD5{$ISO_AMD64_MD5{g |
217 |
|
|
218 |
/<[hH]1>.*<[bB][rR]/d |
/<[hH]1>.*<[bB][rR]/d |
219 |
s|class=\"here\" || |
s|class=\"here\" || |
220 |
s|<a href=\"$fonly\">|<a class=\"here\" href=\"$fonly\">| |
s|<a href=\"$fonly\">|<a class=\"here\" href=\"$fonly\">| |
422 |
|
|
423 |
rm onepage-tmp.html 2>/dev/null |
rm onepage-tmp.html 2>/dev/null |
424 |
|
|
425 |
|
|
426 |
|
|
427 |
|
############################################################################# |
428 |
|
# # |
429 |
|
# Fix download.html warning versions # |
430 |
|
# # |
431 |
|
############################################################################# |
432 |
|
verLineIndex=`grep bordertable index.html | grep "$myversion"| grep '[0-9][0-9]*/[0-9][0-9]/[0-9][0-9]' |sed "s|.*"$myVersion"||" | sed 's/"]//g' | sed -n '1p'` |
433 |
|
|
434 |
|
|
435 |
|
CLONEZILLA_VERSION=`echo "$verLineIndex" | sed 's|.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*-[0-9][0-9]*\).*|\1|'` |
436 |
|
verLineIndex=`echo "$verLineIndex" | sed "s|.*$CLONEZILLA_VERSION||"` |
437 |
|
SYSRESCCD_VERSION=`echo "$verLineIndex" | sed 's|.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*|\1|'` |
438 |
|
sed " |
439 |
|
s/CLONEZILLA_VERSION/$CLONEZILLA_VERSION/ |
440 |
|
s/SYSRESCCD_VERSION/$SYSRESCCD_VERSION/ |
441 |
|
" download.html > download.html.$$ && mv download.html.$$ download.html |