diff --git a/makedist/makedist-announcement.sh b/makedist/makedist-announcement.sh
index 02755ca..88ad97b 100755
--- a/makedist/makedist-announcement.sh
+++ b/makedist/makedist-announcement.sh
@@ -195,7 +195,6 @@ function print_group() {
return 1
}
-
grep " $searchgroup " $catalogfile | \
while read line; do
set -- $line
@@ -207,6 +206,7 @@ function print_group() {
print_include_section() {
local incfile=$1
local title=$2
+ local preadd=$3
local f destincfile
for f in $mediumdir/info/$incfile $fallbackmediumdir/info/$incfile; do
@@ -214,8 +214,9 @@ print_include_section() {
done
if [ "$destincfile" ]; then
- echo "
$title
" >> $outputfile
+ echo "$title
$preadd" >> $outputfile
cat $destincfile >> $outputfile
+ echo "" >> $outputfile
fi
}
@@ -230,8 +231,9 @@ fi
mediumplatform=${MEDIA_PLATFORM[i]}
mediumsubplatform=${MEDIA_SUBPLATFORM[i]}
+webmediumdir=pub/$distribution/media/$distversion/$mediumname
+mediumdir=/var/ftp/$webmediumdir
-mediumdir=/var/ftp/pub/$distribution/media/$distversion/$mediumname
[ "$distversion" = "devel" ] && fallbackmediumdir=/var/ftp/pub/$distribution/media/milestone2/$mediumname
if [ $mediumsubplatform ]; then
@@ -296,6 +298,10 @@ if [ ! -e $outputfile -o "$REBUILDANNOUNCEMENT" = "1" ]; then
echo $"Generating announcement for"" $distribution $distversion ${MEDIA_NAME[i]}"" ($outputlang)"
+ [ -e "$mediumdir/$outputlang/preview/preview-$version.jpg" ] && \
+ IMG_ADD="" ||
+ IMG_ADD=""
+
if [ "$distversion" != "devel" ]; then
echo ""$"$distribution $distversion ${MEDIA_NAME[i]} $version release announcement""
" > $outputfile
echo "" >> $outputfile
@@ -311,7 +317,7 @@ if [ ! -e $outputfile -o "$REBUILDANNOUNCEMENT" = "1" ]; then
cat $mediumdir/info/release-notes.$outputlang.html.inc >> $outputfile
}
- print_include_section description.$outputlang.html.inc $"Description"
+ print_include_section description.$outputlang.html.inc $"Description" "$IMG_ADD"
# [ -e $mediumdir/$outputlang/preview/preview.jpg ] && \
# echo "" >> $outputfile
@@ -348,19 +354,20 @@ $distribution-$mediumname-$l-$mediadistversion-$version.${mediumarch}.${medium_s
"$"Name"": openmamba
"$"Type"": "$"GNU/Linux operating system""
"$"License"": "$"GNU General Public License (GPL) version 3""
-"$"Release branch"": $distversion
" >> $outputfile
if [ "$distversion" = "milestone2" ]; then
echo "\
+"$"Release branch"": $distversion ("$"stable"")
"$"Planned maintenance"": "$"long term""
"$"Updates level"": "$"bugfix"", "$"security"", "$"end-user applications""
"$"Default updates channels"": milestone2, milestone2-updates, milestone2-games
" >> $outputfile
elif [ "$distversion" = "devel" ]; then
echo "\
+"$"Release branch"": $distversion ("$"unstable"")
"$"Planned maintenance"": "$"long term""
-"$"Updates level"": "$"architectural changes""
+"$"Updates level"": "$"rolling""
"$"Updates default channels"": devel, devel-games
" >> $outputfile
fi