]> git.sesse.net Git - vlc/commitdiff
Don't generate module parameters twice
authorRémi Denis-Courmont <rem@videolan.org>
Thu, 1 May 2008 17:27:02 +0000 (20:27 +0300)
committerRémi Denis-Courmont <rem@videolan.org>
Thu, 1 May 2008 17:27:02 +0000 (20:27 +0300)
modules/genmf

index ec314a3e914145aef234cb793bc9cb3fab1ef412..be104529f31ff51ddf32c4fcb0a5cffaad95493d 100755 (executable)
@@ -18,8 +18,8 @@ do
   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`"
-  mods="`sed -n -e 's/^ *SOURCES_\([^ ]*\).*/\1/p' < "${modf}" | xargs`"
-  plugins="`sed -n -e 's/^.*lib\([^ ]*\)_plugin\.la.*/\1/p' < "${modf}" | xargs`"
+  mods="`sed -n -e 's/^ *SOURCES_\([^ ]*\).*/\1/p' < "${modf}" | sort | uniq | xargs`"
+  plugins="`sed -n -e 's/^.*lib\([^ ]*\)_plugin\.la.*/\1/p' < "${modf}" | sort | uniq | xargs`"
   libvlc_ltlibs=""
   extra_ltlibs=""
   for mod in $mods