]> git.sesse.net Git - vlc/commitdiff
* bootstrap:
authorSam Hocevar <sam@videolan.org>
Thu, 25 Mar 2004 22:45:59 +0000 (22:45 +0000)
committerSam Hocevar <sam@videolan.org>
Thu, 25 Mar 2004 22:45:59 +0000 (22:45 +0000)
    + Work around a Solaris sh issue preventing ${foo%%bar} constructs.

bootstrap

index 52845507189fbe7f18df84c1819b86f813bed16e..48e51e928998da0b73a8b796945ddc25a790858f 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -1,7 +1,7 @@
 #! /bin/sh
 
 ##  bootstrap file for the VLC media player
-##  $Id: bootstrap,v 1.83 2003/11/15 01:21:48 massiot Exp $
+##  $Id$
 ##
 ##  Authors: Sam Hocevar <sam@zoy.org>
 
@@ -163,7 +163,7 @@ for dir in `sed -ne 's,modules/\(.*\)/Makefile,\1,p' configure.ac`
 do
   printf "."
   mf="modules/${dir}/Modules.am"
-  basedir="${dir%%\/*}"
+  basedir="`echo "${dir}" | cut -f1 -d/`"
   # automake will not recurse for make dist if we don't define SUBDIRS = .
   subdirs="`sed -ne 's,'modules/${dir}'/\([^/]*\)/Makefile,\1,p' configure.ac | xargs`"
   rm -f modules/${dir}/Makefile.am && cat > modules/${dir}/Makefile.am << EOF