]> git.sesse.net Git - vlc/blobdiff - toolbox
* src/video_output/video_text.c: removed legacy code that has been rotting for ages.
[vlc] / toolbox
diff --git a/toolbox b/toolbox
index 4288840926b669b64e771ca06643b890714a8c88..ef377b53915499bafa1205f2b0903031610fa55a 100755 (executable)
--- a/toolbox
+++ b/toolbox
@@ -1,13 +1,15 @@
 #! /bin/sh
 
 ##  toolbox for the VLC media player
-##  $Id: toolbox,v 1.40 2003/07/08 16:21:00 sam Exp $
+##  $Id: toolbox,v 1.44 2003/07/31 13:06:05 sam Exp $
 ##
 ##  Authors: Samuel Hocevar <sam@zoy.org>
 
 ###
 ###  Get a sane environment, just in case
 ###
+LC_ALL=C
+export LC_ALL
 LANG=C
 export LANG
 CYGWIN=binmode
@@ -81,6 +83,9 @@ case "$1" in
   --make-woody)
     action=woody
     ;;
+  --add-include)
+    action=include
+    ;;
   --help)
     help
     ;;
@@ -91,6 +96,19 @@ case "$1" in
 esac
 shift
 
+##
+##  Add includes to help doxygen
+##
+if test "${action}" = "include"
+then
+  case "$1" in
+    */vlc_common.h|*/include/vlc/*);;
+    */include/*.h) echo "#include <vlc_common.h>" ;;
+  esac
+  cat $1
+  exit 0
+fi
+
 ##
 ##  Update the CVS changelog
 ##
@@ -106,7 +124,7 @@ then
   YEAR=`sed -e 's/\(....\)-..-.*/\1/;q' ChangeLog.tmp`
   LASTYEAR="$((${YEAR} - 1))"
   sed -ne "/^${YEAR}-..-../,/^${LASTYEAR}-..-../{/^${LASTYEAR}-..-../d;p}" \
-    < ChangeLog.tmp > Changelog
+    < ChangeLog.tmp > ChangeLog
   rm -f ChangeLog.tmp
   exit 0
   # To generate changelog for the year 2001:
@@ -353,11 +371,13 @@ 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 '*.[ch]pp' | sort >> po/POTFILES.in
+  find include src -name '*.[chm]' -o -name '*.[ch]pp' \
+    | grep -v '\(vlc_symbols\|misc/modules_\)' \
+    | sort >> po/POTFILES.in
   echo "" >> po/POTFILES.in
   echo "# modules" >> po/POTFILES.in
   find modules -name '*.[chm]' -o -name '*.[ch]pp' \
-    | grep -v '\(gui/win32/\|\.moc\.\)' \
+    | grep -v '\(gui/win32/\)' \
     | sort >> po/POTFILES.in
   # clean old potfiles
   cd po
@@ -553,6 +573,9 @@ then
   # FIXME: a lot of Makefiles are still there
 fi
 
+##
+##  Build a woody-friendly package
+##
 if test "${action}" = "woody"
 then
   set -ex
@@ -612,5 +635,10 @@ then
       < "$1/debian/rules" > "$1/debian/rules.woody"
   mv "$1/debian/rules.woody" "$1/debian/rules"
   chmod 0755 "$1/debian/rules"
+
+  # modules/misc/freetype.c: replace the default font
+  sed -e 's,FreeSerifBold.ttf,thryomanes/thryb___.ttf,' \
+      < "$1/modules/misc/freetype.c" > "$1/modules/misc/freetype.c.woody"
+  mv "$1/modules/misc/freetype.c.woody" "$1/modules/misc/freetype.c"
 fi