From 40acf20fb2d4e9ffc16854f84f45b37e98735c37 Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Jul 06 2011 15:30:13 +0000 Subject: Update cli_replaceTMarkers.sh. --- diff --git a/Scripts/Functions/cli_replaceTMarkers.sh b/Scripts/Functions/cli_replaceTMarkers.sh index d1121ca..85b9c7b 100755 --- a/Scripts/Functions/cli_replaceTMarkers.sh +++ b/Scripts/Functions/cli_replaceTMarkers.sh @@ -66,11 +66,11 @@ function cli_replaceTMarkers { # Define release-specific translation markers. SRC[((++${#SRC[*]}))]='=RELEASE=' - DST[((++${#DST[*]}))]="$(cli_getPathComponent $FLAG_RELEASEVER --release)" + DST[((++${#DST[*]}))]="$FLAG_RELEASEVER" SRC[((++${#SRC[*]}))]='=MAJOR_RELEASE=' - DST[((++${#DST[*]}))]="$(cli_getPathComponent $FLAG_RELEASEVER --release-major)" + DST[((++${#DST[*]}))]="$(echo $FLAG_RELEASEVER | cut -d'.' -f1)" SRC[((++${#SRC[*]}))]='=MINOR_RELEASE=' - DST[((++${#DST[*]}))]="$(cli_getPathComponent $FLAG_RELEASEVER --release-minor)" + DST[((++${#DST[*]}))]="$(echo $FLAG_RELEASEVER | cut -d'.' -f2)" # Define architectures translation markers. SRC[((++${#SRC[*]}))]='=ARCH='