- do cp $$i /tmp/vlc-${PROGRAM_VERSION}/$$i ; done
- # Makefiles
- find . plugins -type f -name Makefile | while read i ; \
- do cp $$i /tmp/vlc-${PROGRAM_VERSION}/$$i ; done
- # extra files
- cp -a extras/* /tmp/vlc-${PROGRAM_VERSION}/extras
- cp -a doc/* /tmp/vlc-${PROGRAM_VERSION}/doc
- find /tmp/vlc-${PROGRAM_VERSION}/extras \
- /tmp/vlc-${PROGRAM_VERSION}/doc \
- -type d -name CVS | while read i ; \
- do rm -Rf $$i ; \
- done
- # copy misc files
- cp vlc.spec AUTHORS COPYING ChangeLog INSTALL README TODO todo.pl \
- Makefile.opts.in Makefile.dep Makefile.modules \
- configure configure.in install-sh config.sub config.guess \
- /tmp/vlc-${PROGRAM_VERSION}/
- for file in control control-css vlc-gtk.menu vlc.copyright vlc.docs \
- changelog changelog-css rules rules-css vlc.dirs vlc.desktop \
- gvlc.desktop gnome-vlc.desktop vlc.menu ; do \
- cp debian/$$file /tmp/vlc-${PROGRAM_VERSION}/debian/ ; \
- done
- for file in default8x16.psf default8x9.psf vlc_beos.rsrc vlc.icns ; do \
- cp share/$$file /tmp/vlc-${PROGRAM_VERSION}/share/ ; done
- for icon in vlc gvlc qvlc gnome-vlc kvlc ; do \
- cp share/$$icon.xpm share/$$icon.png \
- /tmp/vlc-${PROGRAM_VERSION}/share/ ; done
-
- # build css-enabled archives
- (cd /tmp ; tar cf vlc-${PROGRAM_VERSION}.tar vlc-${PROGRAM_VERSION} ; \
- bzip2 -f -9 < vlc-${PROGRAM_VERSION}.tar \
- > vlc-${PROGRAM_VERSION}.tar.bz2 ; \
- gzip -f -9 vlc-${PROGRAM_VERSION}.tar )
- mv /tmp/vlc-${PROGRAM_VERSION}.tar.gz \
- /tmp/vlc-${PROGRAM_VERSION}.tar.bz2 ..
-
- # clean up
- rm -Rf /tmp/vlc-${PROGRAM_VERSION}*
+ do cp $$i tmp/vlc/$$i ; done
+ # Copy plugin Makefiles
+ find plugins -type f -name Makefile | while read i ; \
+ do cp $$i tmp/vlc/$$i ; done
+ # Copy extra programs and documentation
+ cp -a extras/* tmp/vlc/extras
+ cp -a doc/* tmp/vlc/doc
+ find tmp/vlc/extras tmp/vlc/doc \
+ -type d -name CVS -o -name '.*' -o -name '*.[o]' | \
+ while read i ; do rm -Rf $$i ; done
+ # Copy gettext stuff
+ cp po/*.po tmp/vlc/po
+ for i in Makefile.in.in POTFILES.in ; do cp po/$$i tmp/vlc/po ; done
+ # Copy misc files
+ cp FAQ AUTHORS COPYING TODO todo.pl ChangeLog* README* INSTALL* \
+ Makefile Makefile.opts.in Makefile.dep Makefile.modules \
+ configure configure.in install-sh install-win32 vlc.spec \
+ config.sub config.guess acconfig.h aclocal.m4 mkinstalldirs \
+ tmp/vlc/
+ # Copy Debian control files
+ for file in debian/*dirs debian/*docs debian/*menu debian/*desktop \
+ debian/*copyright ; do cp $$file tmp/vlc/debian ; done
+ for file in control changelog rules ; do \
+ cp debian/$$file tmp/vlc/debian/ ; done
+ # Copy ipkg control files
+ for file in control rules ; do \
+ cp ipkg/$$file tmp/vlc/ipkg/ ; done
+ # Copy fonts and icons
+ for file in share/*png share/*xpm share/*psf ; do \
+ cp $$file tmp/vlc/share ; done
+ for file in vlc_beos.rsrc vlc.icns gvlc_win32.ico vlc_win32_rc.rc ; do \
+ cp share/$$file tmp/vlc/share/ ; done
+
+snapshot: snapshot-common
+ # Build archives
+ F=vlc-${VLC_QUICKVERSION}; \
+ mv tmp/vlc tmp/$$F; (cd tmp ; tar cf $$F.tar $$F); \
+ bzip2 -f -9 < tmp/$$F.tar > $$F.tar.bz2; \
+ gzip -f -9 tmp/$$F.tar ; mv tmp/$$F.tar.gz .
+ # Clean up
+ rm -Rf tmp
+
+snapshot-nocss: snapshot-common
+ # Remove libdvdcss
+ rm -Rf tmp/vlc/extras/libdvdcss
+ rm -f tmp/vlc/*.libdvdcss
+ # Fix debian information
+ rm -f tmp/vlc/debian/libdvdcss*
+ rm -f tmp/vlc/debian/control
+ sed -e 's#^ DVDs# unencrypted DVDs#' < debian/control \
+ | awk '{if(gsub("Package: libdvdcss",$$0))a=1;if(a==0)print $$0;if(a==1&&$$0=="")a=0}' \
+ > tmp/vlc/debian/control
+ rm -f tmp/vlc/debian/rules
+ sed -e 's#^\(export LIBDVDCSS_FLAGS=\).*#\1"--without-dvdcss"#' < debian/rules \
+ | awk '{if($$0=="# libdvdcss start")a=1;if(a==0)print $$0;if($$0=="# libdvdcss stop")a=0}' \
+ > tmp/vlc/debian/rules
+ chmod +x tmp/vlc/debian/rules
+ # Build css-disabled archives
+ F=vlc-${VLC_QUICKVERSION}; G=vlc-${VLC_QUICKVERSION}-nocss; \
+ mv tmp/vlc tmp/$$F; (cd tmp ; tar cf $$G.tar $$F); \
+ bzip2 -f -9 < tmp/$$G.tar > $$G.tar.bz2; \
+ gzip -f -9 tmp/$$G.tar ; mv tmp/$$G.tar.gz .
+ # Clean up
+ rm -Rf tmp
+
+package-win32:
+ # XXX: this rule is probably only useful to you if you have exactly
+ # the same setup as me. Contact sam@zoy.org if you need to use it.
+ #
+ # Check that tmp isn't in the way
+ @if test -e tmp; then \
+ echo "Error: please remove ./tmp, it is in the way"; false; \
+ else \
+ echo "OK."; mkdir tmp; \
+ fi
+ # Create installation script
+ sed -e 's#@VERSION@#'${VLC_QUICKVERSION}'#' < install-win32 > tmp/nsi
+ # Copy relevant files
+ cp vlc.exe $(PLUGINS:%=plugins/%.so) tmp/
+ cp INSTALL-win32.txt AUTHORS COPYING ChangeLog ChangeLog.libdvdcss \
+ README README.libdvdcss FAQ TODO tmp/
+ for file in iconv.dll libgmodule-1.3-12.dll libgtk-0.dll libgdk-0.dll \
+ libgobject-1.3-12.dll libintl-1.dll libglib-1.3-12.dll \
+ libgthread-1.3-12.dll SDL.dll README-SDL.txt ; \
+ do cp ${DLL_PATH}/$$file tmp/ ; done
+ mkdir tmp/share
+ for file in default8x16.psf default8x9.psf ; \
+ do cp share/$$file tmp/share/ ; done
+ # Create package
+ wine ~/.wine/fake_windows/Program\ Files/NSIS/makensis.exe /CD tmp/nsi
+ mv tmp/vlc-${VLC_QUICKVERSION}.exe \
+ vlc-${VLC_QUICKVERSION}-win32-installer.exe
+ # Clean up
+ rm -Rf tmp
+
+package-beos:
+ # Check that tmp isn't in the way
+ @if test -e tmp; then \
+ echo "Error: please remove ./tmp, it is in the way"; false; \
+ else \
+ echo "OK."; mkdir tmp; \
+ fi
+
+ # Create dir
+ mkdir -p tmp/vlc/share
+ # Copy relevant files
+ cp vlc tmp/vlc/
+ cp AUTHORS COPYING ChangeLog ChangeLog.libdvdcss \
+ README README.libdvdcss FAQ TODO tmp/vlc/
+ for file in default8x16.psf default8x9.psf ; \
+ do cp share/$$file tmp/vlc/share/ ; done
+ # Create package
+ mv tmp/vlc tmp/vlc-${VLC_QUICKVERSION}
+ (cd tmp ; find vlc-${VLC_QUICKVERSION} | \
+ zip -9 -@ vlc-${VLC_QUICKVERSION}-beos.zip )
+ mv tmp/vlc-${VLC_QUICKVERSION}-BeOS-x86.zip .
+ # Clean up
+ rm -Rf tmp
+
+package-macosx:
+ # Check that tmp isn't in the way
+ @if test -e tmp; then \
+ echo "Error: please remove ./tmp, it is in the way"; false; \
+ else \
+ echo "OK."; mkdir tmp; \
+ fi
+
+ # Copy relevant files
+ cp -R vlc.app tmp/
+ cp AUTHORS COPYING ChangeLog ChangeLog.libdvdcss \
+ README README.libdvdcss FAQ TODO tmp/
+
+ # Create disk image
+ ./macosx-dmg 0 "vlc-${VLC_QUICKVERSION}" tmp/*
+
+ # Clean up
+ rm -Rf tmp
+
+libdvdcss-snapshot: snapshot-common
+ # Remove vlc sources and icons, doc, debian directory...
+ rm -Rf tmp/vlc/src tmp/vlc/share tmp/vlc/plugins tmp/vlc/doc
+ rm -Rf tmp/vlc/extras/GNUgetopt tmp/vlc/extras/MacOSX
+ rm -Rf tmp/vlc/debian
+ rm -Rf tmp/vlc/ipkg
+ # Remove useless headers
+ rm -f tmp/vlc/include/*
+ for file in defs.h.in config.h common.h int_types.h ; \
+ do cp include/$$file tmp/vlc/include/ ; done
+ # Remove misc files (??? - maybe not really needed)
+ rm -f tmp/vlc/vlc.spec tmp/vlc/INSTALL-win32.txt
+ mv tmp/vlc/INSTALL.libdvdcss tmp/vlc/INSTALL
+ mv tmp/vlc/README.libdvdcss tmp/vlc/README
+ mv tmp/vlc/ChangeLog.libdvdcss tmp/vlc/ChangeLog
+ # Fix Makefile
+ rm -f tmp/vlc/Makefile
+ sed -e 's#^install:#install-unused:#' \
+ -e 's#^uninstall:#uninstall-unused:#' \
+ -e 's#^clean:#clean-unused:#' \
+ -e 's#^all:.*#all: libdvdcss#' \
+ -e 's#^libdvdcss-install:#install:#' \
+ -e 's#^libdvdcss-uninstall:#uninstall:#' \
+ -e 's#^libdvdcss-clean:#clean:#' \
+ < Makefile > tmp/vlc/Makefile
+ # Build archives
+ F=libdvdcss-${LIBDVDCSS_QUICKVERSION}; \
+ mv tmp/vlc tmp/$$F; (cd tmp ; tar cf $$F.tar $$F); \
+ bzip2 -f -9 < tmp/$$F.tar > $$F.tar.bz2; \
+ gzip -f -9 tmp/$$F.tar ; mv tmp/$$F.tar.gz .
+ # Clean up
+ rm -Rf tmp
+
+deb:
+ dpkg-buildpackage -rfakeroot -us -uc
+
+#
+# Gtk/Gnome/* aliases and OS X application
+#
+gnome-vlc gvlc kvlc qvlc: vlc
+ rm -f $@ && ln -s vlc $@