]> git.sesse.net Git - vlc/blobdiff - toolbox
* bootstrap:
[vlc] / toolbox
diff --git a/toolbox b/toolbox
index e14ba73bc5046a54961621479b9f274a54803c1f..44b4c4c3dbdf88b1a985d457b3194d34f9de4721 100755 (executable)
--- a/toolbox
+++ b/toolbox
@@ -1,7 +1,7 @@
 #! /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>
 
@@ -20,14 +20,14 @@ help()
 {
   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
 }
@@ -333,10 +333,10 @@ then
   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
@@ -356,7 +356,7 @@ then
   #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
 
@@ -372,6 +372,7 @@ then
   then
     rm -f ${file}.in
   else
+    echo "creating new ${file}"
     mv -f ${file}.in ${file}
   fi
 
@@ -386,6 +387,7 @@ then
   then
     rm -f ${file}.tmp
   else
+    echo "creating new ${file}"
     mv -f ${file}.tmp ${file}
   fi
 
@@ -416,6 +418,7 @@ then
   then
     rm -f ${file}.tmp
   else
+    echo "creating new ${file}"
     mv -f ${file}.tmp ${file}
   fi