Merge pull request #7 from nupplaphil/feat/transifex
xgettext-addon.sh ignores deleted files
This commit is contained in:
commit
362d9ff887
|
@ -4,10 +4,11 @@
|
||||||
#
|
#
|
||||||
DIR=${FRIENDICA_DIR:-$PWD}
|
DIR=${FRIENDICA_DIR:-$PWD}
|
||||||
ADDON_DIR=${FRIENDICA_ADDON_DIR:-"$DIR/addon"}
|
ADDON_DIR=${FRIENDICA_ADDON_DIR:-"$DIR/addon"}
|
||||||
|
CHANGED_FILES=${CHANGED_FILES:-"${DRONE_COMMIT_BEFORE}..${DRONE_COMMIT_AFTER}"}
|
||||||
|
|
||||||
cd $ADDON_DIR
|
cd "$ADDON_DIR" || exit 1
|
||||||
changed_files=($(git diff --name-status ${DRONE_COMMIT_BEFORE}..${DRONE_COMMIT_AFTER} | cut -f2 | sed '/^\./d' | cut -d "/" -f1 | uniq))
|
changed_files=($(git diff --diff-filter=ACM --name-status "${CHANGED_FILES}" | cut -f2 | sed '/^\./d' | cut -d "/" -f1 | uniq))
|
||||||
cd $DIR
|
cd "$DIR" || exit 1
|
||||||
for addon in "${changed_files[@]}"; do
|
for addon in "${changed_files[@]}"; do
|
||||||
./bin/run_xgettext.sh --addon $addon;
|
./bin/run_xgettext.sh --addon "$addon";
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue