File: generate-potfiles.sh

package info (click to toggle)
openscad 2015.03-2%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 30,804 kB
  • ctags: 5,692
  • sloc: cpp: 39,386; sh: 3,856; ansic: 3,674; python: 1,393; yacc: 496; lex: 272; lisp: 159; makefile: 67; xml: 60
file content (22 lines) | stat: -rwxr-xr-x 452 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
#
# Generate list of files for translation. The output is saved to po/POTFILES
# which is needed for the xgettext call.

for ui in src/*.ui
do
        UI="${ui#src/}"
        UI="${UI%.ui}"
        for d in mingw64 mingw32 .
        do
            if [ -f "$d/objects/ui_$UI.h" ]
            then
                echo "$d/objects/ui_$UI.h"
            fi
        done
done

for src in src/*.h src/*.cc src/*.cpp src/*.mm
do
	echo $src
done