Commit 28bb9ac0 authored by Xavier Perseguers's avatar Xavier Perseguers
Browse files

[BUGFIX] Use absolute path to pootle-manage script

Change-Id: Id29540105774b006b76d305368ba23f166e76a46
Reviewed-on: http://review.typo3.org/41487

Reviewed-by: Xavier Perseguers's avatarXavier Perseguers <xavier@typo3.org>
Tested-by: Xavier Perseguers's avatarXavier Perseguers <xavier@typo3.org>
parent 71a2e892
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment