Commit bf81d020 authored by Sam Hocevar's avatar Sam Hocevar

* Makefile.am:

    + Removed trailing / from directory names.
    + Used dummy instead of "" in the for/do/done loops.
    + Protected a couple of filenames with double quotes.
parent a77d803e
...@@ -363,23 +363,23 @@ vlc$(EXEEXT): $(vlc_OBJECTS) $(DEPENDENCIES_vlc) ...@@ -363,23 +363,23 @@ vlc$(EXEEXT): $(vlc_OBJECTS) $(DEPENDENCIES_vlc)
if HAVE_BEOS if HAVE_BEOS
xres -o $@ $(srcdir)/share/vlc_beos.rsrc xres -o $@ $(srcdir)/share/vlc_beos.rsrc
mimeset -f $@ mimeset -f $@
rm -Rf $(srcdir)/locale ; mkdir $(srcdir)/locale rm -Rf $(srcdir)/locale ; mkdir -p "$(srcdir)/locale"
for i in $(ALL_LINGUAS); do \ for i in $(ALL_LINGUAS); do \
mkdir -p $(srcdir)/locale/$${i}/LC_MESSAGES ; \ mkdir -p "$(srcdir)/locale/$${i}/LC_MESSAGES" ; \
cp $(srcdir)/po/$${i}.gmo \ cp "$(srcdir)/po/$${i}.gmo" \
$(srcdir)/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \ "$(srcdir)/locale/$${i}/LC_MESSAGES/vlc.mo" || true ; \
done done
endif endif
# Install the modules and the symlinks # Install the modules and the symlinks
install-exec-local: install-exec-local:
for i in dummy `$(srcdir)/vlc-config --target plugin` ; do if test "x$$i" != "xdummy" ; then \ for i in "" `$(srcdir)/vlc-config --target plugin` ; do if test -n "$$i" ; then \
$(INSTALL) -m 755 "$$i$(LIBEXT)" "$(DESTDIR)$(libdir)/vlc/`echo $$i | cut -f2 -d/`/" ; \ $(INSTALL) -m 755 "$$i$(LIBEXT)" "$(DESTDIR)$(libdir)/vlc/`echo $$i | cut -f2 -d/`/" ; \
fi ; done fi ; done
for i in dummy `$(srcdir)/vlc-config --target builtin` `$(srcdir)/vlc-config --target builtin pic` ; do if test "x$$i" != "xdummy" ; then \ for i in "" `$(srcdir)/vlc-config --target builtin` `$(srcdir)/vlc-config --target builtin pic` ; do if test -n "$$i" ; then \
$(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc/" ; \ $(INSTALL) -m 644 "$$i" "$(DESTDIR)$(libdir)/vlc/" ; \
fi ; done fi ; done
for i in dummy $(ALIASES) ; do if test "x$$i" != "xdummy" ; then \ for i in "" $(ALIASES) ; do if test -n "$$i" ; then \
rm -f "$(DESTDIR)$(bindir)/$$i" && \ rm -f "$(DESTDIR)$(bindir)/$$i" && \
ln -s vlc "$(DESTDIR)$(bindir)/$$i" ; \ ln -s vlc "$(DESTDIR)$(bindir)/$$i" ; \
fi ; done fi ; done
...@@ -395,8 +395,8 @@ VLC.app: vlc plugins ...@@ -395,8 +395,8 @@ VLC.app: vlc plugins
$(INSTALL) -d $(srcdir)/VLC.app/Contents/MacOS $(INSTALL) -d $(srcdir)/VLC.app/Contents/MacOS
$(INSTALL) vlc $(srcdir)/VLC.app/Contents/MacOS/VLC $(INSTALL) vlc $(srcdir)/VLC.app/Contents/MacOS/VLC
$(INSTALL) -d $(srcdir)/VLC.app/Contents/MacOS/modules $(INSTALL) -d $(srcdir)/VLC.app/Contents/MacOS/modules
for i in dummy `$(srcdir)/vlc-config --target plugin` ; do \ for i in "" `$(srcdir)/vlc-config --target plugin` ; do \
if test "x$$i" != "xdummy" ; then $(INSTALL) $(srcdir)/$$i$(LIBEXT) \ if test -n "$$i" ; then $(INSTALL) $(srcdir)/$$i$(LIBEXT) \
$(srcdir)/VLC.app/Contents/MacOS/modules/ ; \ $(srcdir)/VLC.app/Contents/MacOS/modules/ ; \
fi ; done fi ; done
$(INSTALL) -d $(srcdir)/VLC.app/Contents/MacOS/share $(INSTALL) -d $(srcdir)/VLC.app/Contents/MacOS/share
...@@ -443,40 +443,40 @@ builtins_pic: FORCE ...@@ -443,40 +443,40 @@ builtins_pic: FORCE
# #
# Check that tmp isn't in the way # Check that tmp isn't in the way
package-win32: package-win32:
@if test -e $(srcdir)/tmp; then \ @if test -e "$(srcdir)/tmp"; then \
echo "Error: please remove $(srcdir)/tmp, it is in the way"; \ echo "Error: please remove $(srcdir)/tmp, it is in the way"; \
false; \ false; \
else \ else \
echo "OK."; mkdir $(srcdir)/tmp; \ echo "OK."; mkdir -p "$(srcdir)/tmp"; \
fi fi
# Create installation script # Create installation script
cp $(srcdir)/install-win32 $(srcdir)/tmp/nsi cp "$(srcdir)/install-win32" "$(srcdir)/tmp/nsi"
# Copy relevant files # Copy relevant files
cp $(srcdir)/vlc$(EXEEXT) $(srcdir)/tmp/ cp "$(srcdir)/vlc$(EXEEXT)" "$(srcdir)/tmp/"
$(STRIP) $(srcdir)/tmp/vlc$(EXEEXT) $(STRIP) "$(srcdir)/tmp/vlc$(EXEEXT)"
cp $(srcdir)/INSTALL.win32 $(srcdir)/tmp/INSTALL.txt cp "$(srcdir)/INSTALL.win32" "$(srcdir)/tmp/INSTALL.txt"
unix2dos $(srcdir)/tmp/INSTALL.txt unix2dos "$(srcdir)/tmp/INSTALL.txt"
for file in AUTHORS MAINTAINERS THANKS NEWS COPYING README ; \ for file in AUTHORS MAINTAINERS THANKS NEWS COPYING README ; \
do cp $(srcdir)/$$file $(srcdir)/tmp/$${file}.txt ; \ do cp "$(srcdir)/$$file" "$(srcdir)/tmp/$${file}.txt" ; \
unix2dos $(srcdir)/tmp/$${file}.txt ; done unix2dos "$(srcdir)/tmp/$${file}.txt" ; done
mkdir $(srcdir)/tmp/plugins mkdir -p "$(srcdir)/tmp/plugins"
for i in dummy `$(srcdir)/vlc-config --target plugin` ; do \ for i in "" `$(srcdir)/vlc-config --target plugin` ; do \
if test "x$$i" != "xdummy" ; then \ if test -n "$$i" ; then \
$(INSTALL) $(srcdir)/$$i$(LIBEXT) $(srcdir)/tmp/plugins/ ; \ $(INSTALL) "$(srcdir)/$$i$(LIBEXT)" "$(srcdir)/tmp/plugins/" ; \
fi ; done fi ; done
for i in dummy $(srcdir)/tmp/plugins/*$(LIBEXT) ; \ for i in "" $(srcdir)/tmp/plugins/*$(LIBEXT) ; \
do if test $$i != dummy ; then $(STRIP) $$i ; fi ; done do if test -n "$$i" ; then $(STRIP) "$$i" ; fi ; done
mkdir $(srcdir)/tmp/share mkdir -p "$(srcdir)/tmp/share"
cp $(srcdir)/share/*.rle $(srcdir)/tmp/share/ ; cp $(srcdir)/share/*.rle $(srcdir)/tmp/share/ ;
mkdir $(srcdir)/tmp/locale mkdir $(srcdir)/tmp/locale
for i in $(ALL_LINGUAS); do \ for i in $(ALL_LINGUAS); do \
mkdir -p $(srcdir)/tmp/locale/$${i}/LC_MESSAGES ; \ mkdir -p "$(srcdir)/tmp/locale/$${i}/LC_MESSAGES" ; \
cp $(srcdir)/po/$${i}.gmo \ cp "$(srcdir)/po/$${i}.gmo" \
$(srcdir)/tmp/locale/$${i}/LC_MESSAGES/vlc.mo || true ; \ "$(srcdir)/tmp/locale/$${i}/LC_MESSAGES/vlc.mo" || true ; \
done done
mkdir -p $(srcdir)/tmp/skins/default mkdir -p $(srcdir)/tmp/skins/default
...@@ -538,16 +538,16 @@ package-beos: ...@@ -538,16 +538,16 @@ package-beos:
package-macosx: package-macosx:
# Check that tmp isn't in the way # Check that tmp isn't in the way
@if test -e $(srcdir)/tmp; then \ @if test -e "$(srcdir)/tmp"; then \
echo "Error: please remove $(srcdir)/tmp, it is in the way"; \ echo "Error: please remove $(srcdir)/tmp, it is in the way"; \
false; \ false; \
else \ else \
echo "OK."; mkdir $(srcdir)/tmp; \ echo "OK."; mkdir -p "$(srcdir)/tmp"; \
fi fi
# Copy relevant files # Copy relevant files
cp -R $(srcdir)/VLC.app $(srcdir)/tmp/ cp -R "$(srcdir)/VLC.app" "$(srcdir)/tmp/"
cd $(srcdir) && cp AUTHORS COPYING ChangeLog README README.MacOSX.rtf THANKS NEWS tmp/ cd "$(srcdir)" && cp AUTHORS COPYING ChangeLog README README.MacOSX.rtf THANKS NEWS tmp/
# Create disk image # Create disk image
$(srcdir)/extras/MacOSX/macosx-dmg 18 "vlc-${VERSION}" $(srcdir)/tmp/* $(srcdir)/extras/MacOSX/macosx-dmg 18 "vlc-${VERSION}" $(srcdir)/tmp/*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment