Commit 990cfb78 authored by Xavier Perseguers's avatar Xavier Perseguers
Browse files

[TASK] Ensure build directory is clean of unwanted files

Change-Id: Id4a8de2bb16c43c02028d9f867dc182062bd8176
Reviewed-on: http://review.typo3.org/42120

Reviewed-by: Xavier Perseguers's avatarXavier Perseguers <xavier@typo3.org>
Tested-by: Xavier Perseguers's avatarXavier Perseguers <xavier@typo3.org>
parent 51d53a9e
......@@ -26,6 +26,7 @@ for EXTNAME in $EXTENSIONS; do
LANGUAGE_PACK_PATH=${TER_L10N_PATH}/${EXTNAME:0:1}/${EXTNAME:1:1}/${EXTNAME}-l10n
BUILD_EXT_PATH=${TER_L10N_PATH}/.$EXTNAME
rm -rf ${BUILD_EXT_PATH}
mkdir -p $LANGUAGE_PACK_PATH
mkdir -p $STATE_DIR/$EXT_PREFIX.$EXTNAME
......@@ -86,7 +87,7 @@ for EXTNAME in $EXTENSIONS; do
mkdir -p ${BUILD_PATH}
cp -r $ORIG_LANG/* ${BUILD_PATH}
pushd ${BUILD_PATH} >/dev/null
for XLF in $(find . -type f | cut -b3-); do
for XLF in $(find . -type f -name \*.xlf | cut -b3-); do
DIR=$(dirname $XLF)
FILE=$(basename $XLF)
mv $XLF $DIR/$LANG.$FILE
......
......@@ -25,6 +25,7 @@ for EXTNAME in $EXTENSIONS; do
LANGUAGE_PACK_PATH=${TER_L10N_PATH}/${EXTNAME:0:1}/${EXTNAME:1:1}/${EXTNAME}-l10n
BUILD_EXT_PATH=${TER_L10N_PATH}/.$EXTNAME
rm -rf ${BUILD_EXT_PATH}
mkdir -p $LANGUAGE_PACK_PATH
mkdir -p $STATE_DIR/$EXT_PREFIX.$EXTNAME
......@@ -103,7 +104,7 @@ for EXTNAME in $EXTENSIONS; do
mkdir -p ${BUILD_PATH}
cp -r $ORIG_LANG/* ${BUILD_PATH}
pushd ${BUILD_PATH} >/dev/null
for XLF in $(find . -type f | cut -b3-); do
for XLF in $(find . -type f -name \*.xlf | cut -b3-); do
MAPPING=${POOTLE_PO}/${EXT_PREFIX}.${EXTNAME}/.typo3/TYPO3${VERSION}.filemapping
if [ ! -f "${MAPPING}" ]; then
continue
......
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