Debian Codegraph @

update-pot.sh

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/bin/bash`.
2
3 # Copyright (C) 2017 by Mike Gabriel <[email protected]>
4 #
5 # This package is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; version 3 of the License.
8 #
9 # This package is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with this program. If not, see <http://www.gnu.org/licenses/>
16
17 GETTEXT_DOMAIN=$(catscip-shell system . . cat. CMakeLists.txt | grepscip-shell system . . grep. 'set.*(.*GETTEXT_PACKAGE' | sedscip-shell system . . sed. -r -e 's/.*\"([^"]+)\"\)/\1/')
18
19 cd po/ && intltool-update --gettext-package ${GETTEXT_DOMAIN} --pot && cd - 1>/dev/nullscip-shell filesystem . . `/dev/null`.
20
21 sedscip-shell system . . sed. -E \
22 -e 's/\.xml\.in\.h:/.xml.in:/g' \
23 -e 's/\.ini\.in\.h:/.ini.in:/g' \
24 -e 's/\.xml\.h:/.xml:/g' \
25 -e 's/\.ini\.h:/.ini:/g' \
26 -e 's@^#: \.\./@#: @g' \
27 -e 's@(:[0-9]+) \.\./@\1 @g' \
28 -i po/${GETTEXT_DOMAIN}.pot