sawfish r4234 - in trunk: . po



Author: chrisb
Date: Tue Jul 29 10:59:45 2008
New Revision: 4234
URL: http://svn.gnome.org/viewvc/sawfish?rev=4234&view=rev

Log:
make po/make-pot work again


Modified:
   trunk/ChangeLog
   trunk/po/make-pot

Modified: trunk/po/make-pot
==============================================================================
--- trunk/po/make-pot	(original)
+++ trunk/po/make-pot	Tue Jul 29 10:59:45 2008
@@ -20,29 +20,32 @@
 # along with sawfish; see the file COPYING.  If not, write to
 # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
 
-REP_SRCS="../scripts/*.jl\
- ../themer/themer.in\
- ../themes/*/theme.jl"
-
-REP_SRCS="$REP_SRCS `find ../lisp -name '*.jl' -print`"
-
-GLADE_SRCS="../themer/themer.glade"
-
-rm -f sawfish.pot
-
-if [ ! -r ../DOC ]; then
-  echo "error: Need a DOC file!"
-  exit 1
-fi
-
-lisp_c=.$$.lisp.c
-glade_c=.$$.glade.c
-
-./sawfish-xgettext --doc-file=../DOC --c $REP_SRCS >$lisp_c
-libglade-xgettext --c $GLADE_SRCS >$glade_c
-
-xgettext --add-comments -a --no-location $lisp_c $glade_c
-mv -f messages.po sawfish.pot
-
-rm -f $lisp_c $glade_c
-
+case $1 in
+	*update)
+		intltool-update --pot
+		mv -f untitled.pot sawfish.pot
+	;;
+
+	*generate)
+		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
+		
+		xgettext --add-comments -a --no-location $lisp_c 
+		mv -f messages.po sawfish.pot
+
+		rm -f $lisp_c
+	;;
+esac



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]