#! /bin/sh
## toolbox for the VLC media player
-## $Id: toolbox,v 1.27 2003/06/25 03:08:57 sam Exp $
+## $Id: toolbox,v 1.28 2003/06/27 13:50:07 sam Exp $
##
## Authors: Samuel Hocevar <sam@zoy.org>
{
cat << EOF
recognized flags are:
- --update-changelog update the CVS changelog
- --update-vc update Microsoft Visual Studio files
- --update-po update translation files
- --update-includes [BUILTINS] generate various include files
- --update-glade generate and fix Glade code
- --update-glade2 generate and fix Glade 2 code
- --update-flexml generate and fix flexml and flex code
- --distclean "make distclean"
+ --update-changelog update the CVS changelog
+ --update-vc update Microsoft Visual Studio files
+ --update-po update translation files
+ --update-includes generate various include files
+ --update-glade generate and fix Glade code
+ --update-glade2 generate and fix Glade 2 code
+ --update-flexml generate and fix flexml and flex code
+ --distclean "make distclean"
EOF
exit 1
}
echo "# automatically created by toolbox --update-po" > po/POTFILES.in
echo "" >> po/POTFILES.in
echo "# main sources" >> po/POTFILES.in
- find include src -name '*.[chm]' -o -name '*.[hc]pp' | sort >> po/POTFILES.in
+ find include src -name '*.[chm]' -o -name '*.[ch]pp' | sort >> po/POTFILES.in
echo "" >> po/POTFILES.in
echo "# modules" >> po/POTFILES.in
- find modules -name '*.[chm]' -o -name '*.[hc]pp' | grep -v 'gui/win32/' | sort >> po/POTFILES.in
+ find modules -name '*.[chm]' -o -name '*.[ch]pp' | grep -v 'gui/win32/' | sort >> po/POTFILES.in
# clean old potfiles
cd po
rm -f vlc.pot
#set -x
LIBVLC_HEADERS=`getfiles HEADERS_include`
- BUILTINS=`while test $# -gt 0; do echo $1; shift; done`
+ BUILTINS=`sed -ne 's/.*builtins *= *" *\([^"]*\)".*/\1/p' vlc-config`
file=include/vlc_symbols.h
then
rm -f ${file}.in
else
+ echo "creating new ${file}"
mv -f ${file}.in ${file}
fi
then
rm -f ${file}.tmp
else
+ echo "creating new ${file}"
mv -f ${file}.tmp ${file}
fi
then
rm -f ${file}.tmp
else
+ echo "creating new ${file}"
mv -f ${file}.tmp ${file}
fi