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 |
|
thisDate=`date '+%d/%m/%Y'` |
53 |
|
fi |
54 |
|
|
55 |
whereIsTheISO="$whereIsTheISO""$myVersion" |
whereIsTheISO="$whereIsTheISO""$myVersion" |
56 |
whereIsTheTarBall="$whereIsTheISO"/create-clonezilla-sysresccd-"$myVersion".tar.gz |
whereIsTheTarBall="$whereIsTheISO"/create-clonezilla-sysresccd-"$myVersion".tar.gz |
104 |
|
|
105 |
echo 'done' |
echo 'done' |
106 |
|
|
107 |
|
|
108 |
############################################################################# |
############################################################################# |
109 |
# # |
# # |
110 |
# Create news.php # |
# Create news.php # |
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 |