head 1.3; access; symbols; locks; strict; comment @# @; 1.3 date 2003.06.21.14.10.33; author swiergot; state Exp; branches; next 1.2; 1.2 date 2003.06.19.13.18.22; author swiergot; state Exp; branches; next 1.1; 1.1 date 2003.06.18.21.31.48; author swiergot; state Exp; branches; next ; desc @@ 1.3 log @- Added Dialog support. - Don't use make, run xgettext directly instead. - Beautified messages. @ text @#!/bin/sh # make-pot - generates messages.pot # Copyright (c) 2003 Jaroslaw Swierczynski # Distributed under the terms of the GNU GPL version 2 or later # Execute in top directory of source echo -n "Detecting package..." if [ -f ChangeLog.claws ]; then echo " Sylpheed Claws" path=src mask=*.c elif [ -f dialog.c ]; then echo " Dialog" path=. mask=*.c else echo " failed." exit fi echo -n "Scanning source..." chmod 644 po/POTFILES.in find $path -name "$mask" > po/POTFILES.in echo " done" echo -n "Generating POT..." rm -f po/messages.pot xgettext --keyword=N_ --keyword=_ --file=po/POTFILES.in --output=po/messages.pot echo " done" @ 1.2 log @- Detect program and set proper search parameters. - Only Sylpheed Claws is supported now. @ text @d9 2 d12 1 a12 1 echo "Sylpheed Claws detected." d15 4 d20 1 a20 1 echo "Program not recognized." d24 2 d27 1 d29 1 d31 2 a32 7 make -f - << EOF sources = \$(shell cat po/POTFILES.in) po/messages.pot: \$(sources) po/POTFILES.in xgettext --keyword=N_ --keyword=_ --file=po/POTFILES.in \ --output=po/messages.pot EOF @ 1.1 log @- Initial commit. @ text @d9 10 a18 1 find src -name '*.c' > po/POTFILES.in @ .