[vlc-devel] commit: Fail cleanly if Modules.am is missing ( Rémi Denis-Courmont )
git version control
git at videolan.org
Thu Sep 18 21:29:33 CEST 2008
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Thu Sep 18 22:32:39 2008 +0300| [fb057829028ffd1cb47885417bda399dc19774d2] | committer: Rémi Denis-Courmont
Fail cleanly if Modules.am is missing
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fb057829028ffd1cb47885417bda399dc19774d2
---
modules/genmf | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/modules/genmf b/modules/genmf
index 4969410..6bdf882 100755
--- a/modules/genmf
+++ b/modules/genmf
@@ -14,6 +14,10 @@ do
printf "."
dir="$1"
modf="modules/${dir}/Modules.am"
+ if ! test -f "$modf"; then
+ echo "$modf does not exist!" >&2
+ exit 1
+ fi
makf="modules/${dir}/Makefile.am"
basedir="`echo "${dir}" | cut -f1 -d/`"
mods="`sed -n -e 's/^ *SOURCES_\([^ ]*\).*/\1/p' < "${modf}" | sort | uniq | xargs`"
More information about the vlc-devel
mailing list