Changeset bcca390d4441aac7c53e60b457e17bb4af8f6f71
- Timestamp:
- 02/03/08 15:02:07 (7 months ago)
- git-parent:
- Files:
-
- Makefile.am (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
Makefile.am
r47d3ba0 rbcca390 638 638 package-win-common: 639 639 # Check that tmp isn't in the way 640 @if test -e "$(top_builddir)/vlc-$ {VERSION}"; then \641 echo "Error: please remove $(top_builddir)/vlc-$ {VERSION}, it is in the way"; \640 @if test -e "$(top_builddir)/vlc-$(VERSION)"; then \ 641 echo "Error: please remove $(top_builddir)/vlc-$(VERSION), it is in the way"; \ 642 642 false; \ 643 643 else \ 644 echo "OK."; mkdir -p "$(top_builddir)/vlc-$ {VERSION}"; \644 echo "OK."; mkdir -p "$(top_builddir)/vlc-$(VERSION)"; \ 645 645 fi 646 646 647 647 # Copy relevant files 648 cp "$(top_builddir)/.libs/vlc$(EXEEXT)" "$(top_builddir)/vlc-$ {VERSION}/"649 cp "$(top_srcdir)/vlc.exe.manifest" "$(top_builddir)/vlc-$ {VERSION}/"650 cp "$(top_builddir)/src/.libs/libvlc$(LIBEXT)" "vlc-$ {VERSION}/"651 cp "$(top_builddir)/src/.libs/libvlc-control$(LIBEXT)" "vlc-$ {VERSION}/"648 cp "$(top_builddir)/.libs/vlc$(EXEEXT)" "$(top_builddir)/vlc-$(VERSION)/" 649 cp "$(top_srcdir)/vlc.exe.manifest" "$(top_builddir)/vlc-$(VERSION)/" 650 cp "$(top_builddir)/src/.libs/libvlc$(LIBEXT)" "vlc-$(VERSION)/" 651 cp "$(top_builddir)/src/.libs/libvlc-control$(LIBEXT)" "vlc-$(VERSION)/" 652 652 653 653 for file in AUTHORS MAINTAINERS THANKS ; \ 654 do sed 's/@/_AT_/' < "$(srcdir)/$$file" > "$(top_builddir)/vlc-$ {VERSION}/$${file}.txt" ; done;654 do sed 's/@/_AT_/' < "$(srcdir)/$$file" > "$(top_builddir)/vlc-$(VERSION)/$${file}.txt" ; done; 655 655 for file in NEWS COPYING README; \ 656 do cp "$(srcdir)/$$file" "$(top_builddir)/vlc-$ {VERSION}/$${file}.txt"; done657 unix2dos "$(top_builddir)/vlc-$ {VERSION}/"*.txt658 659 mkdir $(top_builddir)/vlc-$ {VERSION}/locale656 do cp "$(srcdir)/$$file" "$(top_builddir)/vlc-$(VERSION)/$${file}.txt"; done 657 unix2dos "$(top_builddir)/vlc-$(VERSION)/"*.txt 658 659 mkdir $(top_builddir)/vlc-$(VERSION)/locale 660 660 cat $(top_srcdir)/po/LINGUAS | while read i; do \ 661 mkdir -p "$(top_builddir)/vlc-$ {VERSION}/locale/$${i}/LC_MESSAGES" ; \661 mkdir -p "$(top_builddir)/vlc-$(VERSION)/locale/$${i}/LC_MESSAGES" ; \ 662 662 cp "$(srcdir)/po/$${i}.gmo" \ 663 "$(top_builddir)/vlc-$ {VERSION}/locale/$${i}/LC_MESSAGES/vlc.mo" \663 "$(top_builddir)/vlc-$(VERSION)/locale/$${i}/LC_MESSAGES/vlc.mo" \ 664 664 || true ; \ 665 665 done 666 666 667 mkdir -p "$(top_builddir)/vlc-$ {VERSION}/http-lua/images"668 mkdir -p "$(top_builddir)/vlc-$ {VERSION}/http-lua/requests"669 mkdir -p "$(top_builddir)/vlc-$ {VERSION}/http-lua/js"670 mkdir -p "$(top_builddir)/vlc-$ {VERSION}/http-lua/dialogs"671 mkdir -p "$(top_builddir)/vlc-$ {VERSION}/http-lua/old"672 mkdir -p "$(top_builddir)/vlc-$ {VERSION}/http-lua/old/vlm"673 mkdir -p "$(top_builddir)/vlc-$ {VERSION}/http-lua/old/admin"674 cp $(srcdir)/share/http-lua/*.html $(top_builddir)/vlc-$ {VERSION}/http-lua/ ;675 unix2dos $(top_builddir)/vlc-$ {VERSION}/http-lua/*.html ;676 cp $(srcdir)/share/http-lua/.hosts $(top_builddir)/vlc-$ {VERSION}/http-lua/ ;677 unix2dos $(top_builddir)/vlc-$ {VERSION}/http-lua/.hosts ;678 cp $(srcdir)/share/http-lua/*.css $(top_builddir)/vlc-$ {VERSION}/http-lua/ ;679 unix2dos $(top_builddir)/vlc-$ {VERSION}/http-lua/*.css ;680 cp $(srcdir)/share/http-lua/js/*.js $(top_builddir)/vlc-$ {VERSION}/http-lua/js/ ;681 unix2dos $(top_builddir)/vlc-$ {VERSION}/http-lua/js/*.js ;682 cp $(srcdir)/share/http-lua/dialogs/* $(top_builddir)/vlc-$ {VERSION}/http-lua/dialogs/ ;683 unix2dos $(top_builddir)/vlc-$ {VERSION}/http-lua/dialogs/* ;684 cp $(srcdir)/share/http-lua/dialogs/.hosts $(top_builddir)/vlc-$ {VERSION}/http-lua/dialogs/ ;685 unix2dos $(top_builddir)/vlc-$ {VERSION}/http-lua/dialogs/.hosts ;686 cp $(srcdir)/share/http-lua/*.ico $(top_builddir)/vlc-$ {VERSION}/http-lua/ ;687 cp $(srcdir)/share/http-lua/images/*.png $(top_builddir)/vlc-$ {VERSION}/http-lua/images/688 cp $(srcdir)/share/http-lua/requests/*.xml $(top_builddir)/vlc-$ {VERSION}/http-lua/requests/ ;689 unix2dos $(top_builddir)/vlc-$ {VERSION}/http-lua/requests/*.xml ;690 cp $(srcdir)/share/http-lua/requests/readme $(top_builddir)/vlc-$ {VERSION}/http-lua/requests/readme.txt ;691 unix2dos $(top_builddir)/vlc-$ {VERSION}/http-lua/requests/readme.txt ;692 693 cp $(srcdir)/share/http-lua/old/*.html $(top_builddir)/vlc-$ {VERSION}/http-lua/old/ ;694 unix2dos $(top_builddir)/vlc-$ {VERSION}/http-lua/old/*.html ;695 cp $(srcdir)/share/http-lua/old/*.css $(top_builddir)/vlc-$ {VERSION}/http-lua/old/ ;696 cp $(srcdir)/share/http-lua/old/.hosts $(top_builddir)/vlc-$ {VERSION}/http-lua/old/ ;697 cp $(srcdir)/share/http-lua/old/*.png $(top_builddir)/vlc-$ {VERSION}/http-lua/old/ ;698 cp $(srcdir)/share/http-lua/old/vlm/*.html $(top_builddir)/vlc-$ {VERSION}/http-lua/old/vlm/ ;699 unix2dos $(top_builddir)/vlc-$ {VERSION}/http-lua/old/vlm/*.html ;700 cp $(srcdir)/share/http-lua/old/admin/*.html $(top_builddir)/vlc-$ {VERSION}/http-lua/old/admin/ ;701 unix2dos $(top_builddir)/vlc-$ {VERSION}/http-lua/old/admin/*.html ;702 cp $(srcdir)/share/http-lua/old/admin/.access $(top_builddir)/vlc-$ {VERSION}/http-lua/old/admin/ ;703 704 mkdir -p "$(top_builddir)/vlc-$ {VERSION}/http/images"705 mkdir -p "$(top_builddir)/vlc-$ {VERSION}/http/requests"706 mkdir -p "$(top_builddir)/vlc-$ {VERSION}/http/js"707 mkdir -p "$(top_builddir)/vlc-$ {VERSION}/http/dialogs"708 mkdir -p "$(top_builddir)/vlc-$ {VERSION}/http/old"709 mkdir -p "$(top_builddir)/vlc-$ {VERSION}/http/old/vlm"710 mkdir -p "$(top_builddir)/vlc-$ {VERSION}/http/old/admin"711 cp $(srcdir)/share/http/*.html $(top_builddir)/vlc-$ {VERSION}/http/ ;712 unix2dos $(top_builddir)/vlc-$ {VERSION}/http/*.html ;713 cp $(srcdir)/share/http/.hosts $(top_builddir)/vlc-$ {VERSION}/http/ ;714 unix2dos $(top_builddir)/vlc-$ {VERSION}/http/.hosts ;715 cp $(srcdir)/share/http/*.css $(top_builddir)/vlc-$ {VERSION}/http/ ;716 unix2dos $(top_builddir)/vlc-$ {VERSION}/http/*.css ;717 cp $(srcdir)/share/http/js/*.js $(top_builddir)/vlc-$ {VERSION}/http/js/ ;718 unix2dos $(top_builddir)/vlc-$ {VERSION}/http/js/*.js ;719 cp $(srcdir)/share/http/dialogs/* $(top_builddir)/vlc-$ {VERSION}/http/dialogs/ ;720 unix2dos $(top_builddir)/vlc-$ {VERSION}/http/dialogs/* ;721 cp $(srcdir)/share/http/dialogs/.hosts $(top_builddir)/vlc-$ {VERSION}/http/dialogs/ ;722 unix2dos $(top_builddir)/vlc-$ {VERSION}/http/dialogs/.hosts ;723 cp $(srcdir)/share/http/*.ico $(top_builddir)/vlc-$ {VERSION}/http/ ;724 cp $(srcdir)/share/http/images/*.png $(top_builddir)/vlc-$ {VERSION}/http/images/725 cp $(srcdir)/share/http/requests/*.xml $(top_builddir)/vlc-$ {VERSION}/http/requests/ ;726 unix2dos $(top_builddir)/vlc-$ {VERSION}/http/requests/*.xml ;727 cp $(srcdir)/share/http/requests/readme $(top_builddir)/vlc-$ {VERSION}/http/requests/readme.txt ;728 unix2dos $(top_builddir)/vlc-$ {VERSION}/http/requests/readme.txt ;729 730 cp $(srcdir)/share/http/old/*.html $(top_builddir)/vlc-$ {VERSION}/http/old/ ;731 unix2dos $(top_builddir)/vlc-$ {VERSION}/http/old/*.html ;732 cp $(srcdir)/share/http/old/*.css $(top_builddir)/vlc-$ {VERSION}/http/old/ ;733 cp $(srcdir)/share/http/old/.hosts $(top_builddir)/vlc-$ {VERSION}/http/old/ ;734 cp $(srcdir)/share/http/old/*.png $(top_builddir)/vlc-$ {VERSION}/http/old/ ;735 cp $(srcdir)/share/http/old/vlm/*.html $(top_builddir)/vlc-$ {VERSION}/http/old/vlm/ ;736 unix2dos $(top_builddir)/vlc-$ {VERSION}/http/old/vlm/*.html ;737 cp $(srcdir)/share/http/old/admin/*.html $(top_builddir)/vlc-$ {VERSION}/http/old/admin/ ;738 unix2dos $(top_builddir)/vlc-$ {VERSION}/http/old/admin/*.html ;739 cp $(srcdir)/share/http/old/admin/.access $(top_builddir)/vlc-$ {VERSION}/http/old/admin/ ;740 741 cp $(srcdir)/share/vlc48x48.ico $(top_builddir)/vlc-$ {VERSION}/ ;667 mkdir -p "$(top_builddir)/vlc-$(VERSION)/http-lua/images" 668 mkdir -p "$(top_builddir)/vlc-$(VERSION)/http-lua/requests" 669 mkdir -p "$(top_builddir)/vlc-$(VERSION)/http-lua/js" 670 mkdir -p "$(top_builddir)/vlc-$(VERSION)/http-lua/dialogs" 671 mkdir -p "$(top_builddir)/vlc-$(VERSION)/http-lua/old" 672 mkdir -p "$(top_builddir)/vlc-$(VERSION)/http-lua/old/vlm" 673 mkdir -p "$(top_builddir)/vlc-$(VERSION)/http-lua/old/admin" 674 cp $(srcdir)/share/http-lua/*.html $(top_builddir)/vlc-$(VERSION)/http-lua/ ; 675 unix2dos $(top_builddir)/vlc-$(VERSION)/http-lua/*.html ; 676 cp $(srcdir)/share/http-lua/.hosts $(top_builddir)/vlc-$(VERSION)/http-lua/ ; 677 unix2dos $(top_builddir)/vlc-$(VERSION)/http-lua/.hosts ; 678 cp $(srcdir)/share/http-lua/*.css $(top_builddir)/vlc-$(VERSION)/http-lua/ ; 679 unix2dos $(top_builddir)/vlc-$(VERSION)/http-lua/*.css ; 680 cp $(srcdir)/share/http-lua/js/*.js $(top_builddir)/vlc-$(VERSION)/http-lua/js/ ; 681 unix2dos $(top_builddir)/vlc-$(VERSION)/http-lua/js/*.js ; 682 cp $(srcdir)/share/http-lua/dialogs/* $(top_builddir)/vlc-$(VERSION)/http-lua/dialogs/ ; 683 unix2dos $(top_builddir)/vlc-$(VERSION)/http-lua/dialogs/* ; 684 cp $(srcdir)/share/http-lua/dialogs/.hosts $(top_builddir)/vlc-$(VERSION)/http-lua/dialogs/ ; 685 unix2dos $(top_builddir)/vlc-$(VERSION)/http-lua/dialogs/.hosts ; 686 cp $(srcdir)/share/http-lua/*.ico $(top_builddir)/vlc-$(VERSION)/http-lua/ ; 687 cp $(srcdir)/share/http-lua/images/*.png $(top_builddir)/vlc-$(VERSION)/http-lua/images/ 688 cp $(srcdir)/share/http-lua/requests/*.xml $(top_builddir)/vlc-$(VERSION)/http-lua/requests/ ; 689 unix2dos $(top_builddir)/vlc-$(VERSION)/http-lua/requests/*.xml ; 690 cp $(srcdir)/share/http-lua/requests/readme $(top_builddir)/vlc-$(VERSION)/http-lua/requests/readme.txt ; 691 unix2dos $(top_builddir)/vlc-$(VERSION)/http-lua/requests/readme.txt ; 692 693 cp $(srcdir)/share/http-lua/old/*.html $(top_builddir)/vlc-$(VERSION)/http-lua/old/ ; 694 unix2dos $(top_builddir)/vlc-$(VERSION)/http-lua/old/*.html ; 695 cp $(srcdir)/share/http-lua/old/*.css $(top_builddir)/vlc-$(VERSION)/http-lua/old/ ; 696 cp $(srcdir)/share/http-lua/old/.hosts $(top_builddir)/vlc-$(VERSION)/http-lua/old/ ; 697 cp $(srcdir)/share/http-lua/old/*.png $(top_builddir)/vlc-$(VERSION)/http-lua/old/ ; 698 cp $(srcdir)/share/http-lua/old/vlm/*.html $(top_builddir)/vlc-$(VERSION)/http-lua/old/vlm/ ; 699 unix2dos $(top_builddir)/vlc-$(VERSION)/http-lua/old/vlm/*.html ; 700 cp $(srcdir)/share/http-lua/old/admin/*.html $(top_builddir)/vlc-$(VERSION)/http-lua/old/admin/ ; 701 unix2dos $(top_builddir)/vlc-$(VERSION)/http-lua/old/admin/*.html ; 702 cp $(srcdir)/share/http-lua/old/admin/.access $(top_builddir)/vlc-$(VERSION)/http-lua/old/admin/ ; 703 704 mkdir -p "$(top_builddir)/vlc-$(VERSION)/http/images" 705 mkdir -p "$(top_builddir)/vlc-$(VERSION)/http/requests" 706 mkdir -p "$(top_builddir)/vlc-$(VERSION)/http/js" 707 mkdir -p "$(top_builddir)/vlc-$(VERSION)/http/dialogs" 708 mkdir -p "$(top_builddir)/vlc-$(VERSION)/http/old" 709 mkdir -p "$(top_builddir)/vlc-$(VERSION)/http/old/vlm" 710 mkdir -p "$(top_builddir)/vlc-$(VERSION)/http/old/admin" 711 cp $(srcdir)/share/http/*.html $(top_builddir)/vlc-$(VERSION)/http/ ; 712 unix2dos $(top_builddir)/vlc-$(VERSION)/http/*.html ; 713 cp $(srcdir)/share/http/.hosts $(top_builddir)/vlc-$(VERSION)/http/ ; 714 unix2dos $(top_builddir)/vlc-$(VERSION)/http/.hosts ; 715 cp $(srcdir)/share/http/*.css $(top_builddir)/vlc-$(VERSION)/http/ ; 716 unix2dos $(top_builddir)/vlc-$(VERSION)/http/*.css ; 717 cp $(srcdir)/share/http/js/*.js $(top_builddir)/vlc-$(VERSION)/http/js/ ; 718 unix2dos $(top_builddir)/vlc-$(VERSION)/http/js/*.js ; 719 cp $(srcdir)/share/http/dialogs/* $(top_builddir)/vlc-$(VERSION)/http/dialogs/ ; 720 unix2dos $(top_builddir)/vlc-$(VERSION)/http/dialogs/* ; 721 cp $(srcdir)/share/http/dialogs/.hosts $(top_builddir)/vlc-$(VERSION)/http/dialogs/ ; 722 unix2dos $(top_builddir)/vlc-$(VERSION)/http/dialogs/.hosts ; 723 cp $(srcdir)/share/http/*.ico $(top_builddir)/vlc-$(VERSION)/http/ ; 724 cp $(srcdir)/share/http/images/*.png $(top_builddir)/vlc-$(VERSION)/http/images/ 725 cp $(srcdir)/share/http/requests/*.xml $(top_builddir)/vlc-$(VERSION)/http/requests/ ; 726 unix2dos $(top_builddir)/vlc-$(VERSION)/http/requests/*.xml ; 727 cp $(srcdir)/share/http/requests/readme $(top_builddir)/vlc-$(VERSION)/http/requests/readme.txt ; 728 unix2dos $(top_builddir)/vlc-$(VERSION)/http/requests/readme.txt ; 729 730 cp $(srcdir)/share/http/old/*.html $(top_builddir)/vlc-$(VERSION)/http/old/ ; 731 unix2dos $(top_builddir)/vlc-$(VERSION)/http/old/*.html ; 732 cp $(srcdir)/share/http/old/*.css $(top_builddir)/vlc-$(VERSION)/http/old/ ; 733 cp $(srcdir)/share/http/old/.hosts $(top_builddir)/vlc-$(VERSION)/http/old/ ; 734 cp $(srcdir)/share/http/old/*.png $(top_builddir)/vlc-$(VERSION)/http/old/ ; 735 cp $(srcdir)/share/http/old/vlm/*.html $(top_builddir)/vlc-$(VERSION)/http/old/vlm/ ; 736 unix2dos $(top_builddir)/vlc-$(VERSION)/http/old/vlm/*.html ; 737 cp $(srcdir)/share/http/old/admin/*.html $(top_builddir)/vlc-$(VERSION)/http/old/admin/ ; 738 unix2dos $(top_builddir)/vlc-$(VERSION)/http/old/admin/*.html ; 739 cp $(srcdir)/share/http/old/admin/.access $(top_builddir)/vlc-$(VERSION)/http/old/admin/ ; 740 741 cp $(srcdir)/share/vlc48x48.ico $(top_builddir)/vlc-$(VERSION)/ ; 742 742 743 743 if BUILD_MOZILLA 744 mkdir -p "$(top_builddir)/vlc-$ {VERSION}/mozilla"745 cp $(top_builddir)/mozilla/.libs/npvlc$(LIBEXT) $(top_builddir)/vlc-$ {VERSION}/mozilla/ ;744 mkdir -p "$(top_builddir)/vlc-$(VERSION)/mozilla" 745 cp $(top_builddir)/mozilla/.libs/npvlc$(LIBEXT) $(top_builddir)/vlc-$(VERSION)/mozilla/ ; 746 746 endif 747 747 748 748 if BUILD_ACTIVEX 749 mkdir -p "$(top_builddir)/vlc-$ {VERSION}/activex"750 cp $(srcdir)/activex/README.TXT $(top_builddir)/vlc-$ {VERSION}/activex/ ;751 cp $(srcdir)/activex/test.html $(top_builddir)/vlc-$ {VERSION}/activex/ ;752 unix2dos $(top_builddir)/vlc-$ {VERSION}/activex/* ;753 754 cp $(top_builddir)/activex/.libs/axvlc$(LIBEXT) $(top_builddir)/vlc-$ {VERSION}/activex/ ;749 mkdir -p "$(top_builddir)/vlc-$(VERSION)/activex" 750 cp $(srcdir)/activex/README.TXT $(top_builddir)/vlc-$(VERSION)/activex/ ; 751 cp $(srcdir)/activex/test.html $(top_builddir)/vlc-$(VERSION)/activex/ ; 752 unix2dos $(top_builddir)/vlc-$(VERSION)/activex/* ; 753 754 cp $(top_builddir)/activex/.libs/axvlc$(LIBEXT) $(top_builddir)/vlc-$(VERSION)/activex/ ; 755 755 endif 756 756 # Rebase all those DLLs to speed up loading (need cygwin rebase) 757 757 if rebase -b 0x42 /dev/null >/dev/null 2>&1; then \ 758 find $(top_builddir)/vlc-$ {VERSION}-type f -name '*.dll' -print | rebase -b 0x70000000 -T -; \758 find $(top_builddir)/vlc-$(VERSION) -type f -name '*.dll' -print | rebase -b 0x70000000 -T -; \ 759 759 fi 760 760 761 761 package-win-common-strip: 762 $(STRIP) "$(top_builddir)/vlc-$ {VERSION}/vlc$(EXEEXT)"763 $(STRIP) "vlc-$ {VERSION}/libvlc$(LIBEXT)"764 $(STRIP) "vlc-$ {VERSION}/libvlc-control$(LIBEXT)"762 $(STRIP) "$(top_builddir)/vlc-$(VERSION)/vlc$(EXEEXT)" 763 $(STRIP) "vlc-$(VERSION)/libvlc$(LIBEXT)" 764 $(STRIP) "vlc-$(VERSION)/libvlc-control$(LIBEXT)" 765 765 if BUILD_MOZILLA 766 $(STRIP) $(top_builddir)/vlc-$ {VERSION}/mozilla/npvlc$(LIBEXT);766 $(STRIP) $(top_builddir)/vlc-$(VERSION)/mozilla/npvlc$(LIBEXT); 767 767 endif 768 768 if BUILD_ACTIVEX 769 $(STRIP) $(top_builddir)/vlc-$ {VERSION}/activex/axvlc$(LIBEXT);769 $(STRIP) $(top_builddir)/vlc-$(VERSION)/activex/axvlc$(LIBEXT); 770 770 endif 771 771 772 772 package-win32-base-debug: package-win-common 773 773 # Copy relevant files 774 cp "$(top_builddir)/vlc.win32.nsi" "$(top_builddir)/vlc-$ {VERSION}/"775 776 mkdir -p "$(top_builddir)/vlc-$ {VERSION}/plugins"774 cp "$(top_builddir)/vlc.win32.nsi" "$(top_builddir)/vlc-$(VERSION)/" 775 776 mkdir -p "$(top_builddir)/vlc-$(VERSION)/plugins" 777 777 for i in "" `$(VLC_CONFIG) --target plugin` ; do \ 778 778 if test -n "$$i" ; then \ 779 779 $(INSTALL) "$(top_builddir)/`dirname $$i`/.libs/`basename $$i`$(LIBEXT)" \ 780 "$(top_builddir)/vlc-$ {VERSION}/plugins/" ; \780 "$(top_builddir)/vlc-$(VERSION)/plugins/" ; \ 781 781 fi ; done 782 782 783 mkdir -p $(top_builddir)/vlc-$ {VERSION}/skins/fonts783 mkdir -p $(top_builddir)/vlc-$(VERSION)/skins/fonts 784 784 for i in $(srcdir)/share/skins2/fonts/*.*; do \ 785 cp $$i $(top_builddir)/vlc-$ {VERSION}/skins/fonts/ || true ; \785 cp $$i $(top_builddir)/vlc-$(VERSION)/skins/fonts/ || true ; \ 786 786 done 787 787 for i in $(srcdir)/share/skins2/*.*; do \ 788 cp $$i $(top_builddir)/vlc-$ {VERSION}/skins/ || true ; \789 done 790 791 $(INSTALL) -d $(top_builddir)/vlc-$ {VERSION}/share/luaplaylist788 cp $$i $(top_builddir)/vlc-$(VERSION)/skins/ || true ; \ 789 done 790 791 $(INSTALL) -d $(top_builddir)/vlc-$(VERSION)/share/luaplaylist 792 792 for i in $(srcdir)/share/luaplaylist/*.* ; do \ 793 $(INSTALL) -m 644 $${i} $(top_builddir)/vlc-$ {VERSION}/share/luaplaylist/`basename $${i}` ; \793 $(INSTALL) -m 644 $${i} $(top_builddir)/vlc-$(VERSION)/share/luaplaylist/`basename $${i}` ; \ 794 794 done ; 795 $(INSTALL) -d $(top_builddir)/vlc-$ {VERSION}/share/luameta795 $(INSTALL) -d $(top_builddir)/vlc-$(VERSION)/share/luameta 796 796 for i in $(srcdir)/share/luameta/*.* ; do \ 797 $(INSTALL) -m 644 $${i} $(top_builddir)/vlc-$ {VERSION}/share/luameta/`basename $${i}` ; \797 $(INSTALL) -m 644 $${i} $(top_builddir)/vlc-$(VERSION)/share/luameta/`basename $${i}` ; \ 798 798 done ; 799 $(INSTALL) -d $(top_builddir)/vlc-$ {VERSION}/share/luaintf799 $(INSTALL) -d $(top_builddir)/vlc-$(VERSION)/share/luaintf 800 800 for i in $(srcdir)/share/luaintf/*.* ; do \ 801 $(INSTALL) -m 644 $${i} $(top_builddir)/vlc-$ {VERSION}/share/luaintf/`basename $${i}` ; \801 $(INSTALL) -m 644 $${i} $(top_builddir)/vlc-$(VERSION)/share/luaintf/`basename $${i}` ; \ 802 802 done ; 803 $(INSTALL) -d $(top_builddir)/vlc-$ {VERSION}/share/luaintf/modules803 $(INSTALL) -d $(top_builddir)/vlc-$(VERSION)/share/luaintf/modules 804 804 for i in $(srcdir)/share/luaintf/modules/*.* ; do \ 805 $(INSTALL) -m 644 $${i} $(top_builddir)/vlc-$ {VERSION}/share/luaintf/modules/`basename $${i}` ; \805 $(INSTALL) -m 644 $${i} $(top_builddir)/vlc-$(VERSION)/share/luaintf/modules/`basename $${i}` ; \ 806 806 done ; 807 807 808 mkdir -p "$(top_builddir)/vlc-$ {VERSION}/osdmenu"809 cp $(srcdir)/share/osdmenu/*.* "$(top_builddir)/vlc-$ {VERSION}/osdmenu"808 mkdir -p "$(top_builddir)/vlc-$(VERSION)/osdmenu" 809 cp $(srcdir)/share/osdmenu/*.* "$(top_builddir)/vlc-$(VERSION)/osdmenu" 810 810 for dir in dvd dvd/selected dvd/unselect dvd/selection dvd/volume default default/selected default/selection default/volume minimal;do \ 811 mkdir -p "$(top_builddir)/vlc-$ {VERSION}/osdmenu/$$dir"; \811 mkdir -p "$(top_builddir)/vlc-$(VERSION)/osdmenu/$$dir"; \ 812 812 for file in $(srcdir)/share/osdmenu/$${dir}/*.*;do \ 813 cp $$file "$(top_builddir)/vlc-$ {VERSION}/osdmenu/$$dir" || true; \813 cp $$file "$(top_builddir)/vlc-$(VERSION)/osdmenu/$$dir" || true; \ 814 814 done; \ 815 815 done 816 unix2dos $(top_builddir)/vlc-$ {VERSION}/osdmenu/*.cfg;817 for file in $(top_builddir)/vlc-$ {VERSION}/osdmenu/*.cfg; do \816 unix2dos $(top_builddir)/vlc-$(VERSION)/osdmenu/*.cfg; 817 for file in $(top_builddir)/vlc-$(VERSION)/osdmenu/*.cfg; do \ 818 818 if sed 's%share/osdmenu%osdmenu%g' $$file >$$file.tmp; then :; else exit 1; fi; \ 819 819 if sed 's%/%\\%g' $$file.tmp >$$file; then :; else exit 1; fi; \ … … 823 823 824 824 package-win32-base: package-win32-base-debug package-win-common-strip 825 for i in "" $(top_builddir)/vlc-$ {VERSION}/plugins/*$(LIBEXT) ; \825 for i in "" $(top_builddir)/vlc-$(VERSION)/plugins/*$(LIBEXT) ; \ 826 826 do if test -n "$$i" ; then $(STRIP) "$$i" ; fi ; done 827 827 … … 829 829 # Create package 830 830 if makensis -VERSION >/dev/null 2>&1; then \ 831 MAKENSIS="makensis -DVERSION=$ {VERSION}"; \831 MAKENSIS="makensis -DVERSION=$(VERSION)"; \ 832 832 elif [ -x "/cygdrive/c/Program Files/NSIS/makensis" ]; then \ 833 MAKENSIS="/cygdrive/c/Program\ Files/NSIS/makensis /DVERSION=$ {VERSION}"; \834 elif [ -x "$ {PROGRAMFILES}/NSIS/makensis" ]; then \835 MAKENSIS="$ {PROGRAMFILES}/NSIS/makensis -DVERSION=${VERSION}"; \833 MAKENSIS="/cygdrive/c/Program\ Files/NSIS/makensis /DVERSION=$(VERSION)"; \ 834 elif [ -x "$(PROGRAMFILES)/NSIS/makensis" ]; then \ 835 MAKENSIS="$(PROGRAMFILES)/NSIS/makensis -DVERSION=$(VERSION)"; \ 836 836 elif wine --version >/dev/null 2>&1; then \ 837 MAKENSIS="wine C:/Program\ Files/NSIS/makensis.exe /DVERSION=$ {VERSION}"; \837 MAKENSIS="wine C:/Program\ Files/NSIS/makensis.exe /DVERSION=$(VERSION)"; \ 838 838 else \ 839 839 echo 'Error: cannot locate makensis tool'; exit 1; \ 840 840 fi; \ 841 eval "$$MAKENSIS $(top_builddir)/vlc-$ {VERSION}/vlc.win32.nsi"841 eval "$$MAKENSIS $(top_builddir)/vlc-$(VERSION)/vlc.win32.nsi" 842 842 843 843 package-win32-base-exe-cygwin: package-win32-base-exe … … 846 846 package-win32-base-exe-linux: 847 847 # Create package 848 makensis -DVERSION=$ {VERSION} $(top_builddir)/vlc-${VERSION}/vlc.win32.nsi848 makensis -DVERSION=$(VERSION) $(top_builddir)/vlc-$(VERSION)/vlc.win32.nsi 849 849 850 850 package-win32-base-zip: package-win32-base 851 851 # Create package 852 zip -r -9 vlc-$ {VERSION}-win32.zip vlc-${VERSION}852 zip -r -9 vlc-$(VERSION)-win32.zip vlc-$(VERSION) 853 853 854 854 package-win32-base-7zip: package-win32-base 855 855 # Create package 856 7z a -t7z -m0=lzma -mx=9 -mfb=64 -md=32m -ms=on vlc-$ {VERSION}-win32.7z vlc-${VERSION}856 7z a -t7z -m0=lzma -mx=9 -mfb=64 -md=32m -ms=on vlc-$(VERSION)-win32.7z vlc-$(VERSION) 857 857 858 858 package-win32-exe: package-win32-base package-win32-base-exe 859 859 # Clean up 860 rm -Rf $(top_builddir)/vlc-$ {VERSION}860 rm -Rf $(top_builddir)/vlc-$(VERSION) 861 861 862 862 package-win32-exe-linux: package-win32-base package-win32-base-exe-linux 863 863 # Clean up 864 rm -Rf $(top_builddir)/vlc-$ {VERSION}864 rm -Rf $(top_builddir)/vlc-$(VERSION) 865 865 866 866 package-win32-zip: package-win32-base-zip 867 867 # Clean up 868 rm -Rf $(top_builddir)/vlc-$ {VERSION}868 rm -Rf $(top_builddir)/vlc-$(VERSION) 869 869 870 870 package-win32-7zip: package-win32-base-7zip 871 871 # Clean up 872 rm -Rf $(top_builddir)/vlc-$ {VERSION}872 rm -Rf $(top_builddir)/vlc-$(VERSION) 873 873 874 874 package-win32-no-clean: package-win32-base-exe package-win32-base-zip package-win32-base-7zip … … 876 876 package-win32: package-win32-no-clean 877 877 # Clean up 878 rm -Rf $(top_builddir)/vlc-$ {VERSION}878 rm -Rf $(top_builddir)/vlc-$(VERSION) 879 879 880 880 package-wince-base: package-win-common package-win-common-strip … … 882 882 package-wince-base-zip: 883 883 # Create package 884 zip -r vlc-$ {VERSION}-wince.zip vlc-${VERSION}884 zip -r vlc-$(VERSION)-wince.zip vlc-$(VERSION) 885 885 886 886 package-wince: package-wince-base package-wince-base-zip 887 887 # Clean up 888 rm -Rf $(top_builddir)/vlc-$ {VERSION}888 rm -Rf $(top_builddir)/vlc-$(VERSION) 889 889 890 890 … … 906 906 xres -o $(srcdir)/tmp/vlc/vlc $(srcdir)/share/vlc_beos.rsrc ; 907 907 find $(srcdir)/tmp/vlc -exec mimeset -f {} \; ; 908 mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-$ {VERSION};909 (cd $(srcdir)/tmp && zip -9 -r vlc-$ {VERSION}-BeOS-debug.zip vlc-${VERSION})910 mv $(srcdir)/tmp/vlc-$ {VERSION}-BeOS-debug.zip $(srcdir)/ ;911 mv $(srcdir)/tmp/vlc-$ {VERSION}$(srcdir)/tmp/vlc ;908 mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-$(VERSION) ; 909 (cd $(srcdir)/tmp && zip -9 -r vlc-$(VERSION)-BeOS-debug.zip vlc-$(VERSION) ) 910 mv $(srcdir)/tmp/vlc-$(VERSION)-BeOS-debug.zip $(srcdir)/ ; 911 mv $(srcdir)/tmp/vlc-$(VERSION) $(srcdir)/tmp/vlc ; 912 912 913 913 # Create normal package … … 917 917 xres -o $(srcdir)/tmp/vlc/vlc $(srcdir)/share/vlc_beos.rsrc ; 918 918 find $(srcdir)/tmp/vlc -exec mimeset -f {} \; ; 919 mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-$ {VERSION};920 (cd $(srcdir)/tmp && zip -9 -r vlc-$ {VERSION}-BeOS.zip vlc-${VERSION})921 mv $(srcdir)/tmp/vlc-$ {VERSION}-BeOS.zip $(srcdir)/ ;919 mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-$(VERSION) ; 920 (cd $(srcdir)/tmp && zip -9 -r vlc-$(VERSION)-BeOS.zip vlc-$(VERSION) ) 921 mv $(srcdir)/tmp/vlc-$(VERSION)-BeOS.zip $(srcdir)/ ; 922 922 923 923 # Clean up … … 926 926 package-macosx: 927 927 # Check that the temporary location isn't in the way 928 @if test -e "$(top_builddir)/vlc-$ {VERSION}/"; then \929 rm -Rf "$(top_builddir)/vlc-$ {VERSION}/" ; \928 @if test -e "$(top_builddir)/vlc-$(VERSION)/"; then \ 929 rm -Rf "$(top_builddir)/vlc-$(VERSION)/" ; \ 930 930 fi 931 931 932 echo "Create package directory: vlc-$ {VERSION}/";933 mkdir -p "$(top_builddir)/vlc-$ {VERSION}/";932 echo "Create package directory: vlc-$(VERSION)/"; 933 mkdir -p "$(top_builddir)/vlc-$(VERSION)/"; 934 934 935 935 # Copy relevant files 936 936 @if test -e "$(top_builddir)/VLC-release.app/"; then \ 937 cp -R "$(top_builddir)/VLC-release.app" "$(top_builddir)/vlc-$ {VERSION}/VLC.app"; \937 cp -R "$(top_builddir)/VLC-release.app" "$(top_builddir)/vlc-$(VERSION)/VLC.app"; \ 938 938 else \ 939 cp -R "$(top_builddir)/VLC.app" "$(top_builddir)/vlc-$ {VERSION}/VLC.app"; \939 cp -R "$(top_builddir)/VLC.app" "$(top_builddir)/vlc-$(VERSION)/VLC.app"; \ 940 940 fi 941 cd "$(srcdir)" && mkdir -p $(top_builddir)/vlc-$ {VERSION}/Goodies/ && \942 mkdir -p $(top_builddir)/vlc-$ {VERSION}/.background/ && \943 cp AUTHORS COPYING ChangeLog README THANKS NEWS $(top_builddir)/vlc-$ {VERSION}/Goodies/ && \944 cp -R extras/MacOSX/Delete_Preferences.app $(top_builddir)/vlc-$ {VERSION}/Goodies/Delete\ VLC\ Preferences.app && \945 cp README.MacOSX.rtf $(top_builddir)/vlc-$ {VERSION}/Read\ Me.rtf && \946 cp extras/MacOSX/Resources/about_bg.png $(top_builddir)/vlc-$ {VERSION}/.background/background.png ;941 cd "$(srcdir)" && mkdir -p $(top_builddir)/vlc-$(VERSION)/Goodies/ && \ 942 mkdir -p $(top_builddir)/vlc-$(VERSION)/.background/ && \ 943 cp AUTHORS COPYING ChangeLog README THANKS NEWS $(top_builddir)/vlc-$(VERSION)/Goodies/ && \ 944 cp -R extras/MacOSX/Delete_Preferences.app $(top_builddir)/vlc-$(VERSION)/Goodies/Delete\ VLC\ Preferences.app && \ 945 cp README.MacOSX.rtf $(top_builddir)/vlc-$(VERSION)/Read\ Me.rtf && \ 946 cp extras/MacOSX/Resources/about_bg.png $(top_builddir)/vlc-$(VERSION)/.background/background.png ; 947 947 948 948 # Place a link to the application folder 949 ln -s /Applications $(top_builddir)/vlc-$ {VERSION}/Applications ;949 ln -s /Applications $(top_builddir)/vlc-$(VERSION)/Applications ; 950 950 951 951 # Create disk image (temporarily taken from the 0.8.6-bugfix branch to provide reliable NBs) 952 952 echo "Creating disk image" ; 953 rm -f "$(top_builddir)/vlc-$ {VERSION}.dmg" ;954 hdiutil create -verbose -srcfolder "$(top_builddir)/vlc-$ {VERSION}" \955 "$(top_builddir)/vlc-$ {VERSION}.dmg" -scrub ;953 rm -f "$(top_builddir)/vlc-$(VERSION).dmg" ; 954 hdiutil create -verbose -srcfolder "$(top_builddir)/vlc-$(VERSION)" \ 955 "$(top_builddir)/vlc-$(VERSION).dmg" -scrub ; 956 956 echo "Disk image creation completed:" ; 957 ls -la "$(top_builddir)/vlc-$ {VERSION}.dmg" ; echo ;957 ls -la "$(top_builddir)/vlc-$(VERSION).dmg" ; echo ; 958 958 959 959 # Create disk image 960 960 # echo "Creating disk image" ; 961 # rm -f "$(top_builddir)/vlc-$ {VERSION}.dmg" ;962 # hdiutil create -verbose -srcfolder "$(top_builddir)/vlc-$ {VERSION}" \963 # "$(top_builddir)/vlc-$ {VERSION}.dmg" -format UDRW \961 # rm -f "$(top_builddir)/vlc-$(VERSION).dmg" ; 962 # hdiutil create -verbose -srcfolder "$(top_builddir)/vlc-$(VERSION)" \ 963 # "$(top_builddir)/vlc-$(VERSION).dmg" -format UDRW \ 964 964 # -scrub -imagekey zlib-level=9 -attach ; 965 965 … … 969 969 # echo "Make sure the root window of the dmg will pop up when the dmg is mounted" ; 970 970 # mkdir -p $(top_builddir)/vlcmnt ; 971 # hdiutil attach -nokernel -readwrite -noverify -noautoopen -private "$(top_builddir)/vlc-$ {VERSION}.dmg" -mountpoint "$(top_builddir)/vlcmnt/vlc-${VERSION}" ;972 # bless --folder "$(top_builddir)/vlcmnt/vlc-$ {VERSION}/" --openfolder "$(top_builddir)/vlcmnt/vlc-${VERSION}" ;971 # hdiutil attach -nokernel -readwrite -noverify -noautoopen -private "$(top_builddir)/vlc-$(VERSION).dmg" -mountpoint "$(top_builddir)/vlcmnt/vlc-$(VERSION)" ; 972 # bless --folder "$(top_builddir)/vlcmnt/vlc-$(VERSION)/" --openfolder "$(top_builddir)/vlcmnt/vlc-$(VERSION)" ; 973 973 # sleep 1 # Make sure operation completes 974 974 # cd "$(srcdir)" 975 975 976 976 # Unmount the image now 977 # hdiutil detach "$(top_builddir)/vlcmnt/vlc-$ {VERSION}" ;977 # hdiutil detach "$(top_builddir)/vlcmnt/vlc-$(VERSION)" ; 978 978 # rm -R $(top_builddir)/vlcmnt ; 979 979 … … 981 981 # Note: We can't directly create a read only dmg as we do the bless stuff 982 982 echo "Make the disk image read-only" ; 983 mv "$(top_builddir)/vlc-$ {VERSION}.dmg" "$(top_builddir)/vlc-${VERSION}-rw.dmg" ;984 hdiutil convert "$(top_builddir)/vlc-$ {VERSION}-rw.dmg" -format UDZO -o "$(top_builddir)/vlc-${VERSION}.dmg" ;985 rm "$(top_builddir)/vlc-$ {VERSION}-rw.dmg" ;983 mv "$(top_builddir)/vlc-$(VERSION).dmg" "$(top_builddir)/vlc-$(VERSION)-rw.dmg" ; 984 hdiutil convert "$(top_builddir)/vlc-$(VERSION)-rw.dmg" -format UDZO -o "$(top_builddir)/vlc-$(VERSION).dmg" ; 985 rm "$(top_builddir)/vlc-$(VERSION)-rw.dmg" ; 986 986 987 987 # We are done 988 988 echo "Disk image creation completed:" ; 989 ls -la "$(top_builddir)/vlc-$ {VERSION}.dmg" ; echo ;989 ls -la "$(top_builddir)/vlc-$(VERSION).dmg" ; echo ; 990 990 991 991 # Clean up 992 rm -Rf "$(top_builddir)/vlc-$ {VERSION}" ;992 rm -Rf "$(top_builddir)/vlc-$(VERSION)" ; 993 993 994 994 package-macosx-plugin: … … 1006 1006 1007 1007 # Create disk image 1008 rm -f "$(top_builddir)/vlc-plugin-$ {VERSION}.dmg"; true1009 rm -rf "$(top_builddir)/vlc-plugin-$ {VERSION}/"; true1010 mkdir -p "$(top_builddir)/vlc-plugin-$ {VERSION}/"1011 mv "$(top_builddir)/VLC Internet Plug-In.pkg" "$(top_builddir)/vlc-plugin-$ {VERSION}/"1012 hdiutil create -srcfolder "$(top_builddir)/vlc-plugin-$ {VERSION}" \1013 "$(top_builddir)/vlc-plugin-$ {VERSION}.dmg" -format UDZO \1008 rm -f "$(top_builddir)/vlc-plugin-$(VERSION).dmg"; true 1009 rm -rf "$(top_builddir)/vlc-plugin-$(VERSION)/"; true 1010 mkdir -p "$(top_builddir)/vlc-plugin-$(VERSION)/" 1011 mv "$(top_builddir)/VLC Internet Plug-In.pkg" "$(top_builddir)/vlc-plugin-$(VERSION)/" 1012 hdiutil create -srcfolder "$(top_builddir)/vlc-plugin-$(VERSION)" \ 1013 "$(top_builddir)/vlc-plugin-$(VERSION).dmg" -format UDZO \ 1014 1014 -scrub -imagekey zlib-level=9 ; 1015 1015 echo "Disk image creation completed:" 1016 rm -rf "$(top_builddir)/vlc-plugin-$ {VERSION}"1016 rm -rf "$(top_builddir)/vlc-plugin-$(VERSION)" 1017 1017 endif 1018 1018 1019 1019 package-translations: 1020 @if test -e "$(srcdir)/vlc-translations-$ {VERSION}"; then \1021 echo "Error: please remove $(srcdir)/vlc-translations-$ {VERSION}, it is in the way"; \1020 @if test -e "$(srcdir)/vlc-translations-$(VERSION)"; then \ 1021 echo "Error: please remove $(srcdir)/vlc-translations-$(VERSION), it is in the way"; \ 1022 1022 false; \ 1023 1023 else \ 1024 echo "OK."; mkdir -p "$(srcdir)/vlc-translations-$ {VERSION}"; \1024 echo "OK."; mkdir -p "$(srcdir)/vlc-translations-$(VERSION)"; \ 1025 1025 fi 1026 1026 # Copy translations 1027 1027 cat $(top_srcdir)/po/LINGUAS | while read i; do \ 1028 1028 cp "$(srcdir)/po/$${i}.po" \ 1029 "$(srcdir)/vlc-translations-$ {VERSION}/$${i}.po" \1029 "$(srcdir)/vlc-translations-$(VERSION)/$${i}.po" \ 1030 1030 || true ; \ 1031 1031 done 1032 1032 cp "$(srcdir)/doc/translations.txt" \ 1033 "$(srcdir)/vlc-translations-$ {VERSION}/README.txt"1033 "$(srcdir)/vlc-translations-$(VERSION)/README.txt" 1034 1034 1035 1035 echo "#!/bin/sh" >>"$(srcdir)/vlc-translations-$(VERSION)/convert.po.sh"
