[BUGFIX] Use absolute path to pootle-manage script 87/41487/2
authorXavier Perseguers <xavier@typo3.org>
Thu, 16 Jul 2015 16:11:16 +0000 (18:11 +0200)
committerXavier Perseguers <xavier@typo3.org>
Thu, 16 Jul 2015 18:15:28 +0000 (20:15 +0200)
Change-Id: Id29540105774b006b76d305368ba23f166e76a46
Reviewed-on: http://review.typo3.org/41487
Reviewed-by: Xavier Perseguers <xavier@typo3.org>
Tested-by: Xavier Perseguers <xavier@typo3.org>
typo3/files/scripts/bin/build-language-pack
typo3/files/scripts/bin/build-sysext-language-pack
typo3/files/scripts/bin/migration/1-migrate-typo3-xliff
typo3/files/scripts/bin/update-typo3-core-template

index 410e80b..705a912 100755 (executable)
@@ -18,7 +18,7 @@ cd $(dirname $0)
 #if [ -z "$FORCE_EXTENSION" ]; then
 #      # Sync whole stores, --project seems not totally reliable
 #      echo "Synchronizing all stores ... "
-#      ./pootle-manage sync_stores 2>&1
+#      ${POOTLE_SCRIPT_HOME}/bin/pootle-manage sync_stores 2>&1
 #fi
 
 for EXTNAME in $EXTENSIONS; do
@@ -27,11 +27,11 @@ for EXTNAME in $EXTENSIONS; do
        echo "Packaging $EXTNAME"
        if [ ! -z "$FORCE_EXTENSION" ]; then
                echo -n "   synchronizing store ... "
-               ./pootle-manage sync_stores --project=$EXT_PREFIX.$EXTNAME >/dev/null 2>&1
+               ${POOTLE_SCRIPT_HOME}/bin/pootle-manage sync_stores --project=$EXT_PREFIX.$EXTNAME >/dev/null 2>&1
                echo "done."
        fi
        echo -n "   updating statistics ... "
-       ./pootle-manage refresh_stats --project="$EXT_PREFIX.$EXTNAME" >/dev/null 2>&1
+       ${POOTLE_SCRIPT_HOME}/bin/pootle-manage refresh_stats --project="$EXT_PREFIX.$EXTNAME" >/dev/null 2>&1
        echo "done."
        pushd ${POOTLE_PO}/$EXT_PREFIX.$EXTNAME >/dev/null
        rm -rf ${TER_L10N_PATH}/_$EXTNAME
@@ -79,7 +79,7 @@ for EXTNAME in $EXTENSIONS; do
                esac
 
                echo -n "   processing $LANG ... "
-               #./pootle-manage sync_stores --project="$EXT_PREFIX.$EXTNAME" --language=$ORIG_LANG >/dev/null 2>&1
+               #${POOTLE_SCRIPT_HOME}/bin/pootle-manage sync_stores --project="$EXT_PREFIX.$EXTNAME" --language=$ORIG_LANG >/dev/null 2>&1
 
                # Compute current state
                STATUS_FILE=$STATE_DIR/$EXT_PREFIX.$EXTNAME/$LANG.time
index 432787c..fcd26bc 100755 (executable)
@@ -18,7 +18,7 @@ cd $(dirname $0)
 #if [ -z "$FORCE_EXTENSION" ]; then
 #      # Sync whole stores, --project seems not totally reliable
 #      echo "Synchronizing all stores ... "
-#      ./pootle-manage sync_stores 2>&1
+#      ${POOTLE_SCRIPT_HOME}/bin/pootle-manage sync_stores 2>&1
 #fi
 
 for EXTNAME in $EXTENSIONS; do
@@ -27,11 +27,11 @@ for EXTNAME in $EXTENSIONS; do
        echo "Packaging $EXTNAME"
        if [ ! -z "$FORCE_EXTENSION" ]; then
                echo -n "   synchronizing store ... "
-               ./pootle-manage sync_stores --project=$EXT_PREFIX.$EXTNAME >/dev/null 2>&1
+               ${POOTLE_SCRIPT_HOME}/bin/pootle-manage sync_stores --project=$EXT_PREFIX.$EXTNAME >/dev/null 2>&1
                echo "done."
        fi
        echo -n "   updating statistics ... "
-       ./pootle-manage refresh_stats --project="$EXT_PREFIX.$EXTNAME" >/dev/null 2>&1
+       ${POOTLE_SCRIPT_HOME}/bin/pootle-manage refresh_stats --project="$EXT_PREFIX.$EXTNAME" >/dev/null 2>&1
        echo "done."
        pushd ${POOTLE_PO}/$EXT_PREFIX.$EXTNAME >/dev/null
 
@@ -92,7 +92,7 @@ for EXTNAME in $EXTENSIONS; do
                        esac
 
                        echo -n "   processing $LANG ... "
-                       #./pootle-manage sync_stores --project="$EXT_PREFIX.$EXTNAME" --language=$ORIG_LANG >/dev/null 2>&1
+                       #${POOTLE_SCRIPT_HOME}/bin/pootle-manage sync_stores --project="$EXT_PREFIX.$EXTNAME" --language=$ORIG_LANG >/dev/null 2>&1
 
                        # Compute current state
                        STATUS_FILE=$STATE_DIR/$EXT_PREFIX.$EXTNAME/$LANG.time
index 9ff5244..d3e5e3f 100755 (executable)
@@ -11,7 +11,7 @@ for PROJECT in ${PROJECTS}; do
        pushd ${PROJECT} >/dev/null
 
        echo "[INFO]    Migrating ${PROJECT}"
-       pootle-manage sync_stores --overwrite --project=${PROJECT}
+       ${POOTLE_SCRIPT_HOME}/bin/pootle-manage sync_stores --overwrite --project=${PROJECT}
 
        LANGUAGES=$(find . -maxdepth 1 -type d | cut -b3-)
        for LANGUAGE in ${LANGUAGES}; do
@@ -47,12 +47,12 @@ for PROJECT in ${PROJECTS}; do
 
                # Remove empty directories
                find . -type d | sort -r | xargs rmdir >/dev/null 2>&1
-                                       
+
                popd >/dev/null
        done
 
        echo "[INFO]    Updating Pootle stores for ${PROJECT}"
-       pootle-manage update_stores --project=${PROJECT}
+       ${POOTLE_SCRIPT_HOME}/bin/pootle-manage update_stores --project=${PROJECT}
 
        popd >/dev/null
 done
index 43742d0..47ff14f 100755 (executable)
@@ -240,14 +240,14 @@ for PROJECT in ${PROJECTS}; do
        echo "[INFO]    Refreshing Pootle for project ${PROJECT}"
 
        # Find new files automatically
-       ./pootle-manage update_stores --project=${PROJECT} --language=templates
+       ${POOTLE_SCRIPT_HOME}/bin/pootle-manage update_stores --project=${PROJECT} --language=templates
 
        # Add new languages if needed
-       ./pootle-manage update_translation_projects --project=${PROJECT}
+       ${POOTLE_SCRIPT_HOME}/bin/pootle-manage update_translation_projects --project=${PROJECT}
 
        # Update translations with labels from templates (source language)
-       ./pootle-manage update_against_templates --project=${PROJECT}
-       ./pootle-manage refresh_stats --project=${PROJECT}
+       ${POOTLE_SCRIPT_HOME}/bin/pootle-manage update_against_templates --project=${PROJECT}
+       ${POOTLE_SCRIPT_HOME}/bin/pootle-manage refresh_stats --project=${PROJECT}
 done
 
 popd >/dev/null