4# Copyright (C) 2017 Canonical Ltd
6# This program is free software: you can redistribute it and/or modify
7# it under the terms of the GNU General Public License version 3 as
8# published by the Free Software Foundation.
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13# GNU General Public License for more details.
15# You should have received a copy of the GNU General Public License
16# along with this program. If not, see <http://www.gnu.org/licenses/>.
23PROGNAME=$(basename $0)
25# Create a list of files to scan
26GETTEXT_FILES=$(mktemp --tmpdir unity8.lst.XXXXX)
27trap 'rm -f "$GETTEXT_FILES"' EXIT
29find \( -name '*.h' -o -name '*.cpp' -o -name '*.qml' -o -name '*.js' \) \
30 -a ! \( -path './debian/*' -o -path './builddir/*' -o -path './build/*' -o -path './tests/*' -o -path './.bzr/*' \) | sort \
33# Generate pot from our list
35 --output $PO_DIR/unity8.pot \
37 --files-from $GETTEXT_FILES \
39 --add-comments=Translators \
48 --keyword=dgettext_datetime \
49 --package-name="unity8" \
50 --copyright-holder="Canonical Ltd." \
53echo "$PROGNAME: $PO_DIR/unity8.pot updated"
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list