20 |
# # |
# # |
21 |
############################################################################## |
############################################################################## |
22 |
|
|
23 |
|
pushd "$PWD" |
24 |
############################################################################## |
############################################################################## |
25 |
# Configuration section |
# Configuration section |
26 |
# |
# |
31 |
############################################################################## |
############################################################################## |
32 |
# Script starts here # |
# Script starts here # |
33 |
############################################################################## |
############################################################################## |
34 |
while getopts "d:" Option |
noDoc=1 |
35 |
|
while getopts "d:n" Option |
36 |
do |
do |
37 |
case $Option in |
case $Option in |
38 |
d) thisDate="$OPTARG" |
d) thisDate="$OPTARG" |
39 |
;; |
;; |
40 |
|
n) unset noDoc;; |
41 |
esac |
esac |
42 |
done |
done |
43 |
./pack-them |
./pack-them |
70 |
# tarballSizeGR=$(echo "$tarballSize" | sed 's|\.|,|') |
# tarballSizeGR=$(echo "$tarballSize" | sed 's|\.|,|') |
71 |
|
|
72 |
|
|
73 |
|
############################################################################# |
74 |
|
# |
75 |
|
# Copy RSS feed to trunk. No manipulation!!! |
76 |
|
# |
77 |
|
############################################################################# |
78 |
|
cd working |
79 |
|
cp clonezilla-sysresccd.rss .. |
80 |
|
cd .. |
81 |
|
|
82 |
|
|
83 |
|
|
84 |
|
############################################################################# |
85 |
|
# |
86 |
|
# Create template.html |
87 |
|
# |
88 |
|
############################################################################# |
89 |
|
|
90 |
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.$$ |
91 |
|
|
166 |
sed -n '1,/<[dD][iI][vV] [iI][dD]="content">/p' xxx.html> p1.$$ |
sed -n '1,/<[dD][iI][vV] [iI][dD]="content">/p' xxx.html> p1.$$ |
167 |
sed '1,/<!--seperator-->/d' working/.404.html >> p1.$$ |
sed '1,/<!--seperator-->/d' working/.404.html >> p1.$$ |
168 |
sed -n '/<[dD][iI][vV] [iI][dD]="content">/,$p' xxx.html | sed '1d' >> p1.$$ |
sed -n '/<[dD][iI][vV] [iI][dD]="content">/,$p' xxx.html | sed '1d' >> p1.$$ |
169 |
sed '/<!--seperator-->/d' p1.$$ > 404.html |
sed '/<!--seperator-->/d' p1.$$ | sed "s|myVersion|"$myVersion"|g" > 404.html |
170 |
rm *.$$ xxx.html |
rm *.$$ xxx.html |
171 |
echo 'done' |
echo 'done' |
172 |
|
|
457 |
s/CLONEZILLA_VERSION/$CLONEZILLA_VERSION/ |
s/CLONEZILLA_VERSION/$CLONEZILLA_VERSION/ |
458 |
s/SYSRESCCD_VERSION/$SYSRESCCD_VERSION/ |
s/SYSRESCCD_VERSION/$SYSRESCCD_VERSION/ |
459 |
" download.html > download.html.$$ && mv download.html.$$ download.html |
" download.html > download.html.$$ && mv download.html.$$ download.html |
460 |
|
|
461 |
|
popd |
462 |
|
if [ -z "$noDoc" ];then |
463 |
|
./html2doc |
464 |
|
./html2txt |
465 |
|
else |
466 |
|
echo |
467 |
|
echo " **** NOT HANDLING DOCS ****" |
468 |
|
fi |
469 |
|
|