summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Astals Cid <[email protected]>2016-07-17 23:19:36 +0200
committerAlbert Astals Cid <[email protected]>2016-07-17 23:19:36 +0200
commit6074b0986d0f83ab2ad49be8bd1b7fb622505f6e (patch)
tree9b22b27e9467c80eddb25650a62b7a2314942aa6
parentd91d149e283a768765f068dc8df5f8795623ddaa (diff)
Fix Messages.sh after excersises folder move
-rw-r--r--Messages.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/Messages.sh b/Messages.sh
index 4e33f43..59e448d 100644
--- a/Messages.sh
+++ b/Messages.sh
@@ -1,7 +1,7 @@
#! /usr/bin/env bash
$EXTRACTRC `find . -name \*.ui -o -name \*.rc -o -name \*.kcfg` >> rc.cpp
-find exercises/ -name *.json | while read FILE; do cat $FILE | sed -n 's/"name"\s*:\s*"\(.*\)",/\1/p' | sed -n 's/\s*//p' >> strings.txt; done
-find exercises/ -name *.json | while read FILE; do cat $FILE | sed -n 's/"userMessage"\s*:\s*"\(.*\)",/\1/p' | sed -n 's/\s*//p' >> strings.txt; done
+find data/exercises/ -name *.json | while read FILE; do cat $FILE | sed -n 's/"name"\s*:\s*"\(.*\)",/\1/p' | sed -n 's/\s*//p' >> strings.txt; done
+find data/exercises/ -name *.json | while read FILE; do cat $FILE | sed -n 's/"userMessage"\s*:\s*"\(.*\)",/\1/p' | sed -n 's/\s*//p' >> strings.txt; done
sort -u strings.txt | while read STR; do printf "i18nc(\"technical term, do you have a musician friend?\", \"$STR\")\n" >> rc.cpp; done
$XGETTEXT `find . -name \*.cpp -o -name \*.qml` -o $podir/minuet.pot
rm -f rc.cpp