diff --git a/bin/makedist-newrelease b/bin/makedist-newrelease index 8bbd97d..096fbff 100755 --- a/bin/makedist-newrelease +++ b/bin/makedist-newrelease @@ -6,10 +6,10 @@ echo function usage() { echo "Usage:" - echo "makedist-newrelease release [distversion] [-f] [--only platform[/subplatform]]" + echo "makedist-newrelease release [distversion] [-f] [--only medium_name]" echo echo "-f: force full rebuild" - echo "--only: only build the specified platform and subplatform" + echo "--only: only build the specified medium" echo "-h: show this help and exit" echo echo "Example:" @@ -26,9 +26,10 @@ function usage() while [ "$1" ]; do case $1 in -f) FORCE_ADD="FORCE=1" ;; - --only) ONLY_PLATFORM=$2 - [ "$ONLY_PLATFORM" ] || { - echo "Error: platform must be specified after --only; aborting." + --only) ONLY_MEDIUM=$2 + [ "$ONLY_MEDIUM" ] || { + echo "Error: medium name must be specified after --only; aborting." + exit 1 } shift ;; -h) usage; exit 0 ;; @@ -38,7 +39,7 @@ while [ "$1" ]; do *) if [ ! "$RELEASE" ]; then RELEASE=$1 elif [ ! "$DISTVERSION" ]; then - DISTVERSION=$2 + DISTVERSION=$1 else echo "Error: exceeding option $1; aborting." exit 1 @@ -49,7 +50,7 @@ while [ "$1" ]; do done [ "$RELEASE" ] || { usage; exit 1; } -[ "$2" ] || DISTVERSION="milestone2" +[ "$DISTVERSION" ] || DISTVERSION="milestone2" . /etc/sysconfig/makedist @@ -57,14 +58,14 @@ echo "Releasing media for openmamba $DISTVERSION $RELEASE" ALLMEDIALAST=`expr ${#MEDIA_NAME[*]} - 1` for i in `seq 0 $ALLMEDIALAST`; do - PLATFORM=${MEDIA_PLATFORM[i]/\/*/} - SUBPLATFORM=${MEDIA_SUBPLATFORM[i]/*\//} - [ "$SUBPLATFORM" = "$PLATFORM" ] && SUBPLATFORM= - [ "${ONLY_PLATFORM/\//}" = "${ONLY_PLATFORM}" ] && ONLY_PLATFORM="$ONLY_PLATFORM/" - [ ! "$ONLY_PLATFORM" -o "$ONLY_PLATFORM" = "$PLATFORM/$SUBPLATFORM" ] || continue +# [ "$SUBPLATFORM" = "$PLATFORM" ] && SUBPLATFORM= +# [ "${ONLY_PLATFORM/\//}" = "${ONLY_PLATFORM}" ] && ONLY_PLATFORM="$ONLY_PLATFORM/" + [ ! "$ONLY_MEDIUM" -o "$ONLY_MEDIUM" = "${MEDIA_NAME[i]}" ] || continue + PLATFORM=${MEDIA_PLATFORM[i]} + SUBPLATFORM=${MEDIA_SUBPLATFORM[i]} for lang in ${MEDIA_LANGUAGES[i]}; do for arch in ${MEDIA_ARCHS[i]}; do - sudo makedist openmamba-$DISTVERSION PLATFORM=$PLATFORM SUBPLATFORM=$SUBPLATFORM LANGUAGE=$lang RELEASE=$DISTVERSION ARCH=$arch $FORCE_ADD || { + sudo makedist openmamba-$DISTVERSION PLATFORM=$PLATFORM SUBPLATFORM=$SUBPLATFORM LANGUAGE=$lang RELEASE=$DISTVERSION ARCH=$arch $FORCE_ADD || { echo "Error: fatal error running 'makedist openmamba-$DISTVERSION PLATFORM=$PLATFORM SUBPLATFORM=$SUBPLATFORM LANGUAGE=$lang RELEASE=$DISTVERSION ARCH=$arch $FORCE_ADD'; aborting." exit 1 } @@ -77,8 +78,8 @@ for i in `seq 0 $ALLMEDIALAST`; do DISTVERSION=$DISTVERSION /etc/cron.daily/20-openmamba-autobuild-makedist done -# Workaround: updates home page HTML which always show previous version after first run -RELEASE=$RELEASE \ -DISTVERSION=$DISTVERSION \ -/etc/cron.daily/20-openmamba-autobuild-makedist +## Workaround: updates home page HTML which always show previous version after first run +#RELEASE=$RELEASE \ +#DISTVERSION=$DISTVERSION \ +#/etc/cron.daily/20-openmamba-autobuild-makedist exit 0 diff --git a/makedist/makedist-announcement.sh b/makedist/makedist-announcement.sh index 40e20c7..26be7df 100755 --- a/makedist/makedist-announcement.sh +++ b/makedist/makedist-announcement.sh @@ -198,7 +198,7 @@ function print_group() { return 1 } - grep " $searchgroup " $catalogfile | \ + grep " $searchgroup " $catalogfile | sort -u | \ while read line; do set -- $line get_pkg_buildinfo $buildinfourl $mediumarch $1 @@ -404,7 +404,7 @@ $distribution-$mediumname-$l-$mediadistversion-$version.${mediumarch}.${medium_s print_pkg_line X.org xorg-server print_pkg_line Mesa Mesa print_pkg_line KDE kde-workspace - print_pkg_line GNOME gnome-session + print_pkg_line GNOME gnome-desktop print_pkg_line LXDE lxde-common block_end $"Graphical and Desktop environment" @@ -466,6 +466,8 @@ $distribution-$mediumname-$l-$mediadistversion-$version.${mediumarch}.${medium_s echo -n "
"$"Announcement automatically generated by"" makedist-announcement $VERSION " >> $outputfile if [ "$distversion" != "devel" ]; then echo $"and signed off by"" $signer" >> $outputfile + else + echo >> $outputfile fi #gpg --clearsign $outputfile > $outputfile.sig @@ -506,7 +508,7 @@ if [ "$SENDEMAIL" -o "$SENDTESTEMAIL" ]; then fi for a in $SENDADDRESSES; do - if [[ "`/usr/bin/tty`" != "not a tty" ]]; then + if [[ "`LC_ALL=C /usr/bin/tty`" != "not a tty" ]]; then echo -n $"Send english ($outputlang) language email to $a for ""'$distribution $distversion ${MEDIA_NAME[i]} $version' [y/N]?" read ans else diff --git a/po/it/messages.po b/po/it/messages.po index 89b49bb..b1f92d2 100644 --- a/po/it/messages.po +++ b/po/it/messages.po @@ -34,7 +34,7 @@ msgid "" "$distversion $version release of the $distribution ${MEDIA_NAME[i]}" "b> distribution." msgstr "" -"Il manutentore di $distribution è annuncia la disponibilità " +"Il manutentore di $distribution annuncia la disponibilità " "della versione $distversion $version della distribuzione " "$distribution ${MEDIA_NAME[i]}."