[TASK] Some speed enhancements while packaging 90/42090/3
authorXavier Perseguers <xavier@typo3.org>
Wed, 29 Jul 2015 12:56:12 +0000 (14:56 +0200)
committerXavier Perseguers <xavier@typo3.org>
Wed, 29 Jul 2015 15:04:25 +0000 (17:04 +0200)
Change-Id: I6294c674a06662157fe4be526b82dfe1e280a4f0
Reviewed-on: http://review.typo3.org/42090
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

index 50f13fb..c12fdae 100755 (executable)
@@ -19,11 +19,7 @@ cd $(dirname $0)
 for EXTNAME in $EXTENSIONS; do
        validProjectName ${EXT_PREFIX}.${EXTNAME} || exit 1
 
-       echo "Packaging $EXTNAME"
-
-       echo -n "   updating statistics ... "
-       ${POOTLE_MANAGE} refresh_stats --project="$EXT_PREFIX.$EXTNAME" >/dev/null 2>&1
-       echo "done."
+       echo "Packaging $EXTNAME / $(date +'%d.%m.%Y %H:%M:%S')"
 
        pushd ${POOTLE_PO}/$EXT_PREFIX.$EXTNAME >/dev/null
        rm -rf ${TER_L10N_PATH}/_$EXTNAME
@@ -166,4 +162,6 @@ for EXTNAME in $EXTENSIONS; do
        rm -rf ${TER_L10N_PATH}/_$EXTNAME
 
        popd >/dev/null
+
+       echo "[DONE] Packaging $EXTNAME / $(date +'%d.%m.%Y %H:%M:%S')"
 done
index f345115..36712af 100755 (executable)
@@ -19,11 +19,7 @@ cd $(dirname $0)
 for EXTNAME in $EXTENSIONS; do
        validProjectName ${EXT_PREFIX}.${EXTNAME} || exit 1
 
-       echo "Packaging $EXTNAME"
-
-       echo -n "   updating statistics ... "
-       ${POOTLE_MANAGE} refresh_stats --project="$EXT_PREFIX.$EXTNAME" >/dev/null 2>&1
-       echo "done."
+       echo "Packaging $EXTNAME / $(date +'%d.%m.%Y %H:%M:%S')"
 
        pushd ${POOTLE_PO}/$EXT_PREFIX.$EXTNAME >/dev/null
 
@@ -33,9 +29,9 @@ for EXTNAME in $EXTENSIONS; do
        mkdir -p $STATE_DIR/$EXT_PREFIX.$EXTNAME
 
        for VERSION in $(find .typo3 -name \*.filemapping | sed -r 's/^.*TYPO3(v.)\.filemapping/\1/'); do
-               echo "   ----------------------"
-               echo "   Processsing TYPO3 ${VERSION}.x"
-               echo "   ----------------------"
+               echo "   -------------------------------------------"
+               echo "   Processing TYPO3 ${VERSION}.x / $(date +'%d.%m.%Y %H:%M:%S')"
+               echo "   -------------------------------------------"
 
                rm -rf ${TER_L10N_PATH}/_$EXTNAME
                UPDATED_PACKAGES=0
@@ -232,4 +228,6 @@ EOT
        done
 
        popd >/dev/null
+
+       echo "[DONE] Packaging $EXTNAME / $(date +'%d.%m.%Y %H:%M:%S')"
 done