- while read i ; do rm -Rf /tmp/vlc-${PROGRAM_VERSION}/$$i ; done
- # .c .h .in .cpp .glade
- find include src plugins -type f -name '*.[chig]*' | while read i ; \
- 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
-
- # make distclean
- (cd /tmp/vlc-${PROGRAM_VERSION} ; ./configure ; make distclean )
-
- # 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}*
+ while read i ; do rm -Rf tmp/vlc/$$i ; done
+ # Copy .c .h .in .cpp and .glade files
+ find include src plugins -type f -name '*.[bcdhigrst]*' | while read i ; \
+ do cp $$i tmp/vlc/$$i ; done
+ # Grmbl... special case...
+ for i in API BUGS DESIGN TODO ; \
+ do cp plugins/mad/$$i tmp/vlc/plugins/mad ; 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/ChangeLog po/vlc.pot 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* \
+ ABOUT-NLS BUGS MODULES vlc.spec \
+ Makefile Makefile.opts.in Makefile.dep Makefile.modules \
+ configure configure.in install-sh install-win32 macosx-dmg \
+ config.sub config.guess 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 patch ; do \
+ cp ipkg/$$file tmp/vlc/ipkg/ ; done
+ # Copy fonts and icons
+ for file in share/*vlc* share/*psf; do \
+ cp $$file tmp/vlc/share ; done
+ # Build archives
+ F=vlc-${VERSION}; \
+ mv tmp/vlc tmp/$$F; (cd tmp ; tar czf ../$$F.tar.gz $$F); \
+ # 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
+ cp install-win32 tmp/nsi
+ # Copy relevant files
+ cp vlc.exe tmp/
+ $(STRIP) tmp/vlc.exe
+ cp INSTALL.win32 tmp/INSTALL.txt ; unix2dos tmp/INSTALL.txt
+ for file in AUTHORS COPYING ChangeLog README FAQ TODO ; \
+ do cp $$file tmp/$${file}.txt ; \
+ unix2dos tmp/$${file}.txt ; done
+ mkdir tmp/plugins
+ cp $(PLUGINS:%=plugins/%.so) tmp/plugins/
+ # don't include these two
+ #rm -f tmp/plugins/gtk.so tmp/plugins/sdl.so
+ifneq (,$(PLUGINS))
+ for i in $(PLUGINS) ; do if test $$i != intfwin ; then $(STRIP) tmp/plugins/$$i.so ; fi ; done
+endif
+ 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 -- /DVERSION=${VERSION} /CD tmp/nsi
+ # 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/
+ strip tmp/vlc/vlc
+ cp AUTHORS COPYING ChangeLog README FAQ TODO tmp/vlc/
+ for file in default8x16.psf default8x9.psf ; \
+ do cp share/$$file tmp/vlc/share/ ; done
+ mkdir tmp/vlc/plugins
+ cp $(PLUGINS:%=plugins/%.so) tmp/vlc/plugins/
+ strip $(PLUGINS:%=tmp/vlc/plugins/%.so)
+ # Create package
+ mv tmp/vlc tmp/vlc-${VERSION}
+ (cd tmp ; find vlc-${VERSION} | \
+ zip -9 -@ vlc-${VERSION}-BeOS-x86.zip )
+ mv tmp/vlc-${VERSION}-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 README README\ -\ Mac\ OS\ X.rtf FAQ TODO tmp/
+
+ # Create disk image
+ ./macosx-dmg 0 "vlc-${VERSION}" tmp/*
+
+ # Clean up
+ rm -Rf tmp
+
+#
+# Gtk/Gnome/* aliases and OS X application
+#
+gnome-vlc gvlc kvlc qvlc: vlc
+ rm -f $@ && ln -s vlc $@