From 991445be8992c9aad1d86f1ce28300c3421e8f2c Mon Sep 17 00:00:00 2001 From: Cyrille Bagard Date: Fri, 6 Jan 2017 23:28:57 +0100 Subject: Built a fresh list for POTFILES when initializing the sources. --- ChangeLog | 11 ++++++++ autogen.sh | 3 ++ po/POTFILES.in | 68 ---------------------------------------------- tools/ipf/init_potfiles.sh | 26 ++++++++++++++++++ 4 files changed, 40 insertions(+), 68 deletions(-) delete mode 100644 po/POTFILES.in create mode 100755 tools/ipf/init_potfiles.sh diff --git a/ChangeLog b/ChangeLog index 4429480..dbc9277 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,16 @@ 17-01-06 Cyrille Bagard + * autogen.sh: + Update init script. + + * po/POTFILES.in: + Deleted entry. + + * tools/ipf/init_potfiles.sh: + Build a fresh list for POTFILES when initializing the sources. + +17-01-06 Cyrille Bagard + * src/analysis/disass/area.c: Handle some special cases of instruction replacements when disassembling. diff --git a/autogen.sh b/autogen.sh index 0b4f620..52b8007 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,6 +1,9 @@ #!/bin/sh # Define internationalization (i18n) + +./tools/ipf/init_potfiles.sh + gettextize --no-changelog # Beware of acknowledgment! diff --git a/po/POTFILES.in b/po/POTFILES.in deleted file mode 100644 index 28f214a..0000000 --- a/po/POTFILES.in +++ /dev/null @@ -1,68 +0,0 @@ -plugins/androhelpers/switch.c -plugins/androhelpers/try_n_catch.c -plugins/mobicore/annotations.c -plugins/mobicore/mclf.c -plugins/pychrysa/analysis/binary.c -plugins/pychrysa/analysis/content.c -plugins/pychrysa/analysis/contents/restricted.c -plugins/pychrysa/analysis/db/collection.c -plugins/pychrysa/analysis/db/item.c -plugins/pychrysa/analysis/db/items/comment.c -plugins/pychrysa/analysis/routine.c -plugins/pychrysa/arch/processor.c -plugins/pychrysa/common/pathname.c -plugins/pychrysa/format/elf/elf.c -plugins/pychrysa/format/symbol.c -plugins/pychrysa/glibext/bufferline.c -plugins/readelf/header.c -plugins/readelf/program.c -plugins/readelf/section.c -plugins/ropgadgets/finder.c -plugins/ropgadgets/plugin.c -plugins/ropgadgets/select.c -src/analysis/binary.c -src/analysis/db/client.c -src/analysis/db/items/bookmark.c -src/analysis/db/items/switcher.c -src/analysis/decomp/decompiler.c -src/analysis/disass/area.c -src/analysis/disass/disassembler.c -src/analysis/disass/fetch.c -src/analysis/disass/output.c -src/analysis/project.c -src/arch/arm/v7/fetch.c -src/arch/dalvik/operands/pool.c -src/arch/raw.c -src/arch/vmpa.c -src/debug/jdwp/debugger.c -src/debug/jdwp/tcp.c -src/format/dex/dex.c -src/format/dex/method.c -src/format/elf/elf.c -src/format/elf/symbols.c -src/glibext/gbinportion.c -src/gtkext/gtkdockable.c -src/gtkext/gtkstatusstack.c -src/gui/dialogs/about.c -src/gui/dialogs/bookmark.c -src/gui/dialogs/export.c -src/gui/dialogs/goto.c -src/gui/dialogs/gotox.c -src/gui/dialogs/plugins.c -src/gui/dialogs/shellcode.c -src/gui/dialogs/storage.c -src/gui/editor.c -src/gui/menus/binary.c -src/gui/menus/debug.c -src/gui/menus/edition.c -src/gui/menus/file.c -src/gui/menus/help.c -src/gui/menus/plugins.c -src/gui/menus/project.c -src/gui/menus/view.c -src/gui/panels/history.c -src/gui/panels/symbols.c -src/gui/status.c -src/gui/tb/portions.c -src/gui/tb/source.c -src/main.c diff --git a/tools/ipf/init_potfiles.sh b/tools/ipf/init_potfiles.sh new file mode 100755 index 0000000..e92c120 --- /dev/null +++ b/tools/ipf/init_potfiles.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +function keep_i18n() { + + while read file; + do + + if [ "$file" != "i18n.h" ]; then + + grep -q '_(' $file + + status=$? + + if [ "$status" -eq 0 ]; then + echo $file + fi + + fi + + done + +} + +mkdir -p po + +find . -type f -name '*.[ch]' | keep_i18n | sort > po/POTFILES.in -- cgit v0.11.2-87-g4458