Or get the branch?

This commit is contained in:
Julien Palard 2023-03-28 11:45:25 +02:00
parent 712a2f6738
commit 3a64e23583
Signed by: mdk
GPG Key ID: 0EFC1AC1006886F8
2 changed files with 4 additions and 1 deletions

View File

@ -7,4 +7,7 @@ pipeline:
- apt-get update
- apt-get install -y hunspell hunspell-fr-comprehensive
- python3 -m pip install -r requirements.txt
- BRANCH="$(grep ^BRANCH Makefile | awk '{print $3}')"
- git fetch origin --no-tags +refs/heads/$BRANCH
- git branch $BRANCH origin/$BRANCH
- make verifs

View File

@ -140,7 +140,7 @@ wrap: ensure_test_prerequisites
@echo "Re wrapping modified files"
powrap -m
SRCS = $(shell git diff --name-only $(BRANCH) 2>/dev/null | grep '.po$$' || echo *.po */*.po)
SRCS = $(shell git diff --name-only $(BRANCH) | grep '.po$$')
# foo/bar.po => $(POSPELL_TMP_DIR)/foo/bar.po.out
DESTS = $(addprefix $(POSPELL_TMP_DIR)/,$(addsuffix .out,$(SRCS)))