[sawfish: 4/13] po/make-pot bugfix; requires "make all" prior to this.
- From: Christopher Bratusek <chrisb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sawfish: 4/13] po/make-pot bugfix; requires "make all" prior to this.
- Date: Sat, 9 Oct 2010 13:38:27 +0000 (UTC)
commit fe4028ca07d23deafe77d7fb387c8114c84c8b33
Author: Teika kazura <teika lavabit com>
Date: Sat Oct 9 17:26:46 2010 +0900
po/make-pot bugfix; requires "make all" prior to this.
po/make-pot needs the file "DOC", but it used to generate it in wrong way,
resulting in sawfish.pot which lacks some strings.
Now po/make-pot doesn't generate DOC, but it simply aborts if it's absent,
printing instruction message.
po/make-pot | 20 +++++++++++---------
1 files changed, 11 insertions(+), 9 deletions(-)
---
diff --git a/po/make-pot b/po/make-pot
index 2ab5ff3..e1652d8 100755
--- a/po/make-pot
+++ b/po/make-pot
@@ -2,8 +2,6 @@
# make-pot -- extract .pot file from sources
-# $Id: make-pot,v 1.5 2000/09/01 22:45:15 john Exp $
-
# This file is part of sawfish.
# sawfish is free software; you can redistribute it and/or modify it
@@ -20,19 +18,23 @@
# along with sawfish; see the file COPYING. If not, write to
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
-if [ ! -e ../DOC ]; then
- repdoc ../DOC `find ../ \( -name '*.c' -o -name '*.jl' \) -print`
+if [ ! -r ../DOC ]; then
+ echo "First do \"make all\"."
+ exit 0
fi
+# The problem is that the following misses several items. "make all"
+# has to preceed.
+# $ rm -f ../DOC
+# $ repdoc ../DOC `find ../ \( -name '*.c' -o -name '*.jl' \) -print`
+
+# Some jl files are generated by make, but this problem is not related
+# to it. For example, some in commands.jl are ignored.
+
REP_SRCS="../scripts/*.jl ../themes/*/theme.jl"
REP_SRCS="$REP_SRCS `find ../lisp -name '*.jl' -print`"
rm -f sawfish.pot
-if [ ! -r ../DOC ]; then
- echo "error: Need a DOC file!"
- exit 1
-fi
-
lisp_c=.$$.lisp.c
./sawfish-xgettext --doc-file=../DOC --c $REP_SRCS >$lisp_c
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]