From 79d221ff33a4c1a1ea6c3d5d9392c08180c7b133 Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Nov 07 2013 15:14:46 +0000 Subject: Update centos-art.sh scripts. - Previously, the tcar_getTemporalFile was using one variable expansion for RANDOM variable in from of temporal files. This update changes the tcar_getTemporalFile to strength the random number set in front temporal files by adding anoterh RANDOM variable expansion after the one already existent. Now the random number is twice larger and more difficult duplicate. - Previously, the tcar_setTranslationMarker function wasn't expanded any translation marker related to release numbers. This update changes tcar_setTranslationMarker to add both =RELEASE= and =MAJOR_RELEASE= markers. These markers are expanded based on the value of RELEASE and MAJOR_RELEASE variables, respectively. --- diff --git a/Automation/Scripts/tcar_getTemporalFile.sh b/Automation/Scripts/tcar_getTemporalFile.sh index 5fcefbc..b182513 100755 --- a/Automation/Scripts/tcar_getTemporalFile.sh +++ b/Automation/Scripts/tcar_getTemporalFile.sh @@ -38,7 +38,7 @@ function tcar_getTemporalFile { # instances are created previous to be parsed by inkscape in order # to be exported as png. In such cases .svg file extension is # required in order to avoid complains from inkscape. - local FILENAME="${RANDOM}-$(tcar_getRepoName ${1} -f)" + local FILENAME="${RANDOM}${RANDOM}-$(tcar_getRepoName ${1} -f)" # Check default base name for temporal file, it can't be an empty # value. diff --git a/Automation/Scripts/tcar_setTranslationMarkers.sh b/Automation/Scripts/tcar_setTranslationMarkers.sh index 710d23f..1ec018e 100755 --- a/Automation/Scripts/tcar_setTranslationMarkers.sh +++ b/Automation/Scripts/tcar_setTranslationMarkers.sh @@ -93,6 +93,12 @@ function tcar_setTranslationMarkers { SRC[((++${#SRC[*]}))]='=URL_PLANET=' DST[((++${#DST[*]}))]=$(tcar_printUrl '--planet' '--with-locale') + # Define release translation markers. + SRC[((++${#SRC[*]}))]='=RELEASE=' + DST[((++${#DST[*]}))]=${RELEASE} + SRC[((++${#SRC[*]}))]='=MAJOR_RELEASE=' + DST[((++${#DST[*]}))]=${MAJOR_RELEASE} + # Define emails translation markers. SRC[((++${#SRC[*]}))]='=MAIL_DOCS=' DST[((++${#DST[*]}))]="$(tcar_printMailingList --docs)"