Skip to content
Snippets Groups Projects
Commit caed317a authored by Jan Trávníček's avatar Jan Trávníček
Browse files

add xml formatting script

parent eaa5deb1
No related branches found
No related tags found
No related merge requests found
...@@ -113,6 +113,7 @@ debug build-debug: ...@@ -113,6 +113,7 @@ debug build-debug:
cp $$dir/bin-debug/* $(addsuffix -debug, $(BINFOLDER)); \ cp $$dir/bin-debug/* $(addsuffix -debug, $(BINFOLDER)); \
done done
cp translateAddresses $(addsuffix -debug, $(BINFOLDER)); \ cp translateAddresses $(addsuffix -debug, $(BINFOLDER)); \
cp xmlFormat $(addsuffix -debug, $(BINFOLDER)); \
if [ "$@" == "debug" ] && [ $(RUN_TESTS) -eq 1 ]; then for test in $(wildcard tests.*.sh); do \ if [ "$@" == "debug" ] && [ $(RUN_TESTS) -eq 1 ]; then for test in $(wildcard tests.*.sh); do \
./$$test debug $(JOBS); \ ./$$test debug $(JOBS); \
done; fi done; fi
...@@ -140,6 +141,7 @@ release build-release: ...@@ -140,6 +141,7 @@ release build-release:
cp $$dir/bin-release/* $(addsuffix -release, $(BINFOLDER)); \ cp $$dir/bin-release/* $(addsuffix -release, $(BINFOLDER)); \
done done
cp translateAddresses $(addsuffix -release, $(BINFOLDER)); \ cp translateAddresses $(addsuffix -release, $(BINFOLDER)); \
cp xmlFormat $(addsuffix -release, $(BINFOLDER)); \
if [ "$@" == "release" ] && [ $(RUN_TESTS) -eq 1 ]; then for test in $(wildcard tests.*.sh); do \ if [ "$@" == "release" ] && [ $(RUN_TESTS) -eq 1 ]; then for test in $(wildcard tests.*.sh); do \
./$$test release $(JOBS); \ ./$$test release $(JOBS); \
done; fi done; fi
......
#! /bin/bash
TMPFILE=$(mktemp)
for i in "$@"
do
cp "$i" "$TMPFILE"
xmllint --format "$TMPFILE" > "$i"
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment