X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=toolbox;h=dfb190be117b21dfa8cef356c93d966e6baa3096;hb=78ee7a2c9896558377606a59bb0ad636077f280e;hp=cec735571f20fc51921da108ff91a91ff22287e6;hpb=371148d3db06625f4842833f10f7deb66e3001df;p=vlc diff --git a/toolbox b/toolbox index cec735571f..dfb190be11 100755 --- a/toolbox +++ b/toolbox @@ -1,13 +1,15 @@ #! /bin/sh ## toolbox for the VLC media player -## $Id: toolbox,v 1.41 2003/07/14 20:36:55 sigmunau Exp $ +## $Id: toolbox,v 1.45 2003/09/15 18:28:47 sam Exp $ ## ## Authors: Samuel Hocevar ### ### Get a sane environment, just in case ### +LC_ALL=C +export LC_ALL LANG=C export LANG CYGWIN=binmode @@ -122,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: @@ -369,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 @@ -569,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 @@ -587,6 +594,7 @@ then # libarts1-dev with libarts-dev # libdvdread3-dev with libdvdread2-dev # libdvdplay0-dev (>=1.0.1-2) with libdvdplay0-dev + # libxosd-dev (>=2.2.4-1.3) with libxosd-dev # remove libwxgtk2.4-dev # libflac-dev # libidl0 (workaround for mozilla-dev's bad deps) @@ -604,6 +612,7 @@ then -e 's/libarts[0-9]*-dev/libarts-dev/' \ -e 's/libdvdread[0-9]*-dev/libdvdread2-dev/' \ -e 's/, libdvdplay0-dev[^,]*/, libdvdplay0-dev/' \ + -e 's/, libxosd-dev[^,]*/, libxosd-dev/' \ -e 's/, libwx[^,]*//' \ -e '/Package: wxvlc/,/^ *$/d' \ -e 's/, libflac-dev[^,]*//' \ @@ -628,5 +637,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