Changeset e104a2e689d4a1de68655d6e7936a6ceb87e6283
- Timestamp:
- 05/22/08 18:32:56 (4 months ago)
- git-parent:
- Files:
-
- Makefile.am (modified) (6 diffs)
- src/config/dirs.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
Makefile.am
r3f02d5d re104a2e 676 676 unix2dos "$(top_builddir)/vlc-$(VERSION)/"*.txt 677 677 678 mkdir $(top_builddir)/vlc-$(VERSION)/locale678 mkdir -p $(top_builddir)/vlc-$(VERSION)/share/locale 679 679 cat $(top_srcdir)/po/LINGUAS | while read i; do \ 680 mkdir -p "$(top_builddir)/vlc-$(VERSION)/ locale/$${i}/LC_MESSAGES" ; \680 mkdir -p "$(top_builddir)/vlc-$(VERSION)/share/locale/$${i}/LC_MESSAGES" ; \ 681 681 cp "$(srcdir)/po/$${i}.gmo" \ 682 "$(top_builddir)/vlc-$(VERSION)/ locale/$${i}/LC_MESSAGES/vlc.mo" \682 "$(top_builddir)/vlc-$(VERSION)/share/locale/$${i}/LC_MESSAGES/vlc.mo" \ 683 683 || true ; \ 684 684 done 685 685 686 686 if BUILD_LUA 687 mkdir -p "$(top_builddir)/vlc-$(VERSION)/ lua/http/images"688 mkdir -p "$(top_builddir)/vlc-$(VERSION)/ lua/http/requests"689 mkdir -p "$(top_builddir)/vlc-$(VERSION)/ lua/http/js"690 mkdir -p "$(top_builddir)/vlc-$(VERSION)/ lua/http/dialogs"691 cp $(srcdir)/share/lua/http/*.html $(top_builddir)/vlc-$(VERSION)/ lua/http/ ;692 unix2dos $(top_builddir)/vlc-$(VERSION)/ lua/http/*.html ;693 cp $(srcdir)/share/lua/http/.hosts $(top_builddir)/vlc-$(VERSION)/ lua/http/ ;694 unix2dos $(top_builddir)/vlc-$(VERSION)/ lua/http/.hosts ;695 cp $(srcdir)/share/lua/http/*.css $(top_builddir)/vlc-$(VERSION)/ lua/http/ ;696 unix2dos $(top_builddir)/vlc-$(VERSION)/ lua/http/*.css ;697 cp $(srcdir)/share/lua/http/js/*.js $(top_builddir)/vlc-$(VERSION)/ lua/http/js/ ;698 unix2dos $(top_builddir)/vlc-$(VERSION)/ lua/http/js/*.js ;699 cp $(srcdir)/share/lua/http/dialogs/* $(top_builddir)/vlc-$(VERSION)/ lua/http/dialogs/ ;700 unix2dos $(top_builddir)/vlc-$(VERSION)/ lua/http/dialogs/* ;701 cp $(srcdir)/share/lua/http/dialogs/.hosts $(top_builddir)/vlc-$(VERSION)/ lua/http/dialogs/ ;702 unix2dos $(top_builddir)/vlc-$(VERSION)/ lua/http/dialogs/.hosts ;703 cp $(srcdir)/share/lua/http/*.ico $(top_builddir)/vlc-$(VERSION)/ lua/http/ ;704 cp $(srcdir)/share/lua/http/images/*.png $(top_builddir)/vlc-$(VERSION)/ lua/http/images/705 cp $(srcdir)/share/lua/http/requests/*.xml $(top_builddir)/vlc-$(VERSION)/ lua/http/requests/ ;706 unix2dos $(top_builddir)/vlc-$(VERSION)/ lua/http/requests/*.xml ;707 cp $(srcdir)/share/lua/http/requests/readme $(top_builddir)/vlc-$(VERSION)/ lua/http/requests/readme.txt ;708 unix2dos $(top_builddir)/vlc-$(VERSION)/ lua/http/requests/readme.txt ;687 mkdir -p "$(top_builddir)/vlc-$(VERSION)/share/lua/http/images" 688 mkdir -p "$(top_builddir)/vlc-$(VERSION)/share/lua/http/requests" 689 mkdir -p "$(top_builddir)/vlc-$(VERSION)/share/lua/http/js" 690 mkdir -p "$(top_builddir)/vlc-$(VERSION)/share/lua/http/dialogs" 691 cp $(srcdir)/share/lua/http/*.html $(top_builddir)/vlc-$(VERSION)/share/lua/http/ 692 unix2dos $(top_builddir)/vlc-$(VERSION)/share/lua/http/*.html 693 cp $(srcdir)/share/lua/http/.hosts $(top_builddir)/vlc-$(VERSION)/share/lua/http/ 694 unix2dos $(top_builddir)/vlc-$(VERSION)/share/lua/http/.hosts 695 cp $(srcdir)/share/lua/http/*.css $(top_builddir)/vlc-$(VERSION)/share/lua/http/ 696 unix2dos $(top_builddir)/vlc-$(VERSION)/share/lua/http/*.css 697 cp $(srcdir)/share/lua/http/js/*.js $(top_builddir)/vlc-$(VERSION)/share/lua/http/js/ 698 unix2dos $(top_builddir)/vlc-$(VERSION)/share/lua/http/js/*.js 699 cp $(srcdir)/share/lua/http/dialogs/* $(top_builddir)/vlc-$(VERSION)/share/lua/http/dialogs/ 700 unix2dos $(top_builddir)/vlc-$(VERSION)/share/lua/http/dialogs/* 701 cp $(srcdir)/share/lua/http/dialogs/.hosts $(top_builddir)/vlc-$(VERSION)/share/lua/http/dialogs/ 702 unix2dos $(top_builddir)/vlc-$(VERSION)/share/lua/http/dialogs/.hosts 703 cp $(srcdir)/share/lua/http/*.ico $(top_builddir)/vlc-$(VERSION)/share/lua/http/ 704 cp $(srcdir)/share/lua/http/images/*.png $(top_builddir)/vlc-$(VERSION)/share/lua/http/images/ 705 cp $(srcdir)/share/lua/http/requests/*.xml $(top_builddir)/vlc-$(VERSION)/share/lua/http/requests/ 706 unix2dos $(top_builddir)/vlc-$(VERSION)/share/lua/http/requests/*.xml 707 cp $(srcdir)/share/lua/http/requests/readme $(top_builddir)/vlc-$(VERSION)/share/lua/http/requests/readme.txt 708 unix2dos $(top_builddir)/vlc-$(VERSION)/share/lua/http/requests/readme.txt 709 709 endif 710 710 711 711 if BUILD_HTTPD 712 mkdir -p "$(top_builddir)/vlc-$(VERSION)/ http/images"713 mkdir -p "$(top_builddir)/vlc-$(VERSION)/ http/requests"714 mkdir -p "$(top_builddir)/vlc-$(VERSION)/ http/js"715 mkdir -p "$(top_builddir)/vlc-$(VERSION)/ http/dialogs"716 mkdir -p "$(top_builddir)/vlc-$(VERSION)/ http/old"717 mkdir -p "$(top_builddir)/vlc-$(VERSION)/ http/old/vlm"718 mkdir -p "$(top_builddir)/vlc-$(VERSION)/ http/old/admin"719 cp $(srcdir)/share/http/*.html $(top_builddir)/vlc-$(VERSION)/ http/ ;720 unix2dos $(top_builddir)/vlc-$(VERSION)/ http/*.html ;721 cp $(srcdir)/share/http/.hosts $(top_builddir)/vlc-$(VERSION)/ http/ ;722 unix2dos $(top_builddir)/vlc-$(VERSION)/ http/.hosts ;723 cp $(srcdir)/share/http/*.css $(top_builddir)/vlc-$(VERSION)/ http/ ;724 unix2dos $(top_builddir)/vlc-$(VERSION)/ http/*.css ;725 cp $(srcdir)/share/http/js/*.js $(top_builddir)/vlc-$(VERSION)/ http/js/ ;726 unix2dos $(top_builddir)/vlc-$(VERSION)/ http/js/*.js ;727 cp $(srcdir)/share/http/dialogs/* $(top_builddir)/vlc-$(VERSION)/ http/dialogs/ ;728 unix2dos $(top_builddir)/vlc-$(VERSION)/ http/dialogs/* ;729 cp $(srcdir)/share/http/dialogs/.hosts $(top_builddir)/vlc-$(VERSION)/ http/dialogs/ ;730 unix2dos $(top_builddir)/vlc-$(VERSION)/ http/dialogs/.hosts ;731 cp $(srcdir)/share/http/*.ico $(top_builddir)/vlc-$(VERSION)/ http/ ;732 cp $(srcdir)/share/http/images/*.png $(top_builddir)/vlc-$(VERSION)/ http/images/733 cp $(srcdir)/share/http/requests/*.xml $(top_builddir)/vlc-$(VERSION)/ http/requests/ ;734 unix2dos $(top_builddir)/vlc-$(VERSION)/ http/requests/*.xml ;735 cp $(srcdir)/share/http/requests/readme $(top_builddir)/vlc-$(VERSION)/ http/requests/readme.txt ;736 unix2dos $(top_builddir)/vlc-$(VERSION)/ http/requests/readme.txt ;737 738 cp $(srcdir)/share/http/old/*.html $(top_builddir)/vlc-$(VERSION)/ http/old/ ;739 unix2dos $(top_builddir)/vlc-$(VERSION)/ http/old/*.html ;740 cp $(srcdir)/share/http/old/*.css $(top_builddir)/vlc-$(VERSION)/ http/old/ ;741 cp $(srcdir)/share/http/old/.hosts $(top_builddir)/vlc-$(VERSION)/ http/old/ ;742 cp $(srcdir)/share/http/old/*.png $(top_builddir)/vlc-$(VERSION)/ http/old/ ;743 cp $(srcdir)/share/http/old/vlm/*.html $(top_builddir)/vlc-$(VERSION)/ http/old/vlm/ ;744 unix2dos $(top_builddir)/vlc-$(VERSION)/ http/old/vlm/*.html ;745 cp $(srcdir)/share/http/old/admin/*.html $(top_builddir)/vlc-$(VERSION)/ http/old/admin/ ;746 unix2dos $(top_builddir)/vlc-$(VERSION)/ http/old/admin/*.html ;747 cp $(srcdir)/share/http/old/admin/.access $(top_builddir)/vlc-$(VERSION)/ http/old/admin/ ;748 endif 749 750 cp $(srcdir)/share/vlc48x48.ico $(top_builddir)/vlc-$(VERSION)/ ;712 mkdir -p "$(top_builddir)/vlc-$(VERSION)/share/http/images" 713 mkdir -p "$(top_builddir)/vlc-$(VERSION)/share/http/requests" 714 mkdir -p "$(top_builddir)/vlc-$(VERSION)/share/http/js" 715 mkdir -p "$(top_builddir)/vlc-$(VERSION)/share/http/dialogs" 716 mkdir -p "$(top_builddir)/vlc-$(VERSION)/share/http/old" 717 mkdir -p "$(top_builddir)/vlc-$(VERSION)/share/http/old/vlm" 718 mkdir -p "$(top_builddir)/vlc-$(VERSION)/share/http/old/admin" 719 cp $(srcdir)/share/http/*.html $(top_builddir)/vlc-$(VERSION)/share/http/ 720 unix2dos $(top_builddir)/vlc-$(VERSION)/share/http/*.html 721 cp $(srcdir)/share/http/.hosts $(top_builddir)/vlc-$(VERSION)/share/http/ 722 unix2dos $(top_builddir)/vlc-$(VERSION)/share/http/.hosts 723 cp $(srcdir)/share/http/*.css $(top_builddir)/vlc-$(VERSION)/share/http/ 724 unix2dos $(top_builddir)/vlc-$(VERSION)/share/http/*.css 725 cp $(srcdir)/share/http/js/*.js $(top_builddir)/vlc-$(VERSION)/share/http/js/ 726 unix2dos $(top_builddir)/vlc-$(VERSION)/share/http/js/*.js 727 cp $(srcdir)/share/http/dialogs/* $(top_builddir)/vlc-$(VERSION)/share/http/dialogs/ 728 unix2dos $(top_builddir)/vlc-$(VERSION)/share/http/dialogs/* 729 cp $(srcdir)/share/http/dialogs/.hosts $(top_builddir)/vlc-$(VERSION)/share/http/dialogs/ 730 unix2dos $(top_builddir)/vlc-$(VERSION)/share/http/dialogs/.hosts 731 cp $(srcdir)/share/http/*.ico $(top_builddir)/vlc-$(VERSION)/share/http/ 732 cp $(srcdir)/share/http/images/*.png $(top_builddir)/vlc-$(VERSION)/share/http/images/ 733 cp $(srcdir)/share/http/requests/*.xml $(top_builddir)/vlc-$(VERSION)/share/http/requests/ 734 unix2dos $(top_builddir)/vlc-$(VERSION)/share/http/requests/*.xml 735 cp $(srcdir)/share/http/requests/readme $(top_builddir)/vlc-$(VERSION)/share/http/requests/readme.txt 736 unix2dos $(top_builddir)/vlc-$(VERSION)/share/http/requests/readme.txt 737 738 cp $(srcdir)/share/http/old/*.html $(top_builddir)/vlc-$(VERSION)/share/http/old/ 739 unix2dos $(top_builddir)/vlc-$(VERSION)/share/http/old/*.html 740 cp $(srcdir)/share/http/old/*.css $(top_builddir)/vlc-$(VERSION)/share/http/old/ 741 cp $(srcdir)/share/http/old/.hosts $(top_builddir)/vlc-$(VERSION)/share/http/old/ 742 cp $(srcdir)/share/http/old/*.png $(top_builddir)/vlc-$(VERSION)/share/http/old/ 743 cp $(srcdir)/share/http/old/vlm/*.html $(top_builddir)/vlc-$(VERSION)/share/http/old/vlm/ 744 unix2dos $(top_builddir)/vlc-$(VERSION)/share/http/old/vlm/*.html 745 cp $(srcdir)/share/http/old/admin/*.html $(top_builddir)/vlc-$(VERSION)/share/http/old/admin/ 746 unix2dos $(top_builddir)/vlc-$(VERSION)/share/http/old/admin/*.html 747 cp $(srcdir)/share/http/old/admin/.access $(top_builddir)/vlc-$(VERSION)/share/http/old/admin/ 748 endif 749 750 cp $(srcdir)/share/vlc48x48.ico $(top_builddir)/vlc-$(VERSION)/ 751 751 752 752 if BUILD_MOZILLA 753 753 mkdir -p "$(top_builddir)/vlc-$(VERSION)/mozilla" 754 cp $(top_builddir)/projects/mozilla/.libs/npvlc$(LIBEXT) $(top_builddir)/vlc-$(VERSION)/mozilla/ ;754 cp $(top_builddir)/projects/mozilla/.libs/npvlc$(LIBEXT) $(top_builddir)/vlc-$(VERSION)/mozilla/ 755 755 endif 756 756 757 757 if BUILD_ACTIVEX 758 758 mkdir -p "$(top_builddir)/vlc-$(VERSION)/activex" 759 cp $(srcdir)/projects/activex/README.TXT $(top_builddir)/vlc-$(VERSION)/activex/ ;760 cp $(srcdir)/projects/activex/test.html $(top_builddir)/vlc-$(VERSION)/activex/ ;761 unix2dos $(top_builddir)/vlc-$(VERSION)/activex/* ;762 763 cp $(top_builddir)/projects/activex/.libs/axvlc$(LIBEXT) $(top_builddir)/vlc-$(VERSION)/activex/ ;759 cp $(srcdir)/projects/activex/README.TXT $(top_builddir)/vlc-$(VERSION)/activex/ 760 cp $(srcdir)/projects/activex/test.html $(top_builddir)/vlc-$(VERSION)/activex/ 761 unix2dos $(top_builddir)/vlc-$(VERSION)/activex/* 762 763 cp $(top_builddir)/projects/activex/.libs/axvlc$(LIBEXT) $(top_builddir)/vlc-$(VERSION)/activex/ 764 764 endif 765 765 # Rebase all those DLLs to speed up loading (need cygwin rebase) … … 795 795 mkdir -p $(top_builddir)/vlc-$(VERSION)/skins/fonts 796 796 for i in $(srcdir)/share/skins2/fonts/*.*; do \ 797 cp $$i $(top_builddir)/vlc-$(VERSION)/skins/fonts/ || true ; \797 cp -- "$$i" $(top_builddir)/vlc-$(VERSION)/share/skins/fonts/ || true ; \ 798 798 done 799 799 for i in $(srcdir)/share/skins2/*.*; do \ 800 cp $$i $(top_builddir)/vlc-$(VERSION)/skins/ || true ; \800 cp -- "$$i" $(top_builddir)/vlc-$(VERSION)/share/skins/ || true ; \ 801 801 done 802 802 endif … … 804 804 if BUILD_LUA 805 805 #Lua Scripts 806 $(INSTALL) -d $(top_builddir)/vlc-$(VERSION)/s cripts/playlist806 $(INSTALL) -d $(top_builddir)/vlc-$(VERSION)/share/lua/playlist 807 807 for i in $(srcdir)/share/lua/playlist/*.* ; do \ 808 $(INSTALL) -m 644 $${i} $(top_builddir)/vlc-$(VERSION)/scripts/playlist/`basename $${i}` ; \809 done ;810 $(INSTALL) -d $(top_builddir)/vlc-$(VERSION)/s cripts/meta808 $(INSTALL) -m 644 -- "$${i}" $(top_builddir)/vlc-$(VERSION)/share/lua/playlist/`basename $${i}` ; \ 809 done 810 $(INSTALL) -d $(top_builddir)/vlc-$(VERSION)/share/lua/meta 811 811 for i in $(srcdir)/share/lua/meta/*.* ; do \ 812 $(INSTALL) -m 644 $${i} $(top_builddir)/vlc-$(VERSION)/scripts/meta/`basename $${i}` ; \813 done ;814 $(INSTALL) -d $(top_builddir)/vlc-$(VERSION)/s cripts/intf812 $(INSTALL) -m 644 -- "$${i}" $(top_builddir)/vlc-$(VERSION)/share/lua/meta/`basename $${i}` ; \ 813 done 814 $(INSTALL) -d $(top_builddir)/vlc-$(VERSION)/share/lua/intf 815 815 for i in $(srcdir)/share/lua/intf/*.* ; do \ 816 $(INSTALL) -m 644 $${i} $(top_builddir)/vlc-$(VERSION)/scripts/intf/`basename $${i}` ; \817 done ;818 $(INSTALL) -d $(top_builddir)/vlc-$(VERSION)/s cripts/intf/modules816 $(INSTALL) -m 644 -- "$${i}" $(top_builddir)/vlc-$(VERSION)/share/lua/intf/`basename $${i}` ; \ 817 done 818 $(INSTALL) -d $(top_builddir)/vlc-$(VERSION)/share/lua/intf/modules 819 819 for i in $(srcdir)/share/lua/intf/modules/*.* ; do \ 820 $(INSTALL) -m 644 $${i} $(top_builddir)/vlc-$(VERSION)/scripts/intf/modules/`basename $${i}` ; \821 done ;820 $(INSTALL) -m 644 -- "$${i}" $(top_builddir)/vlc-$(VERSION)/share/lua/intf/modules/`basename $${i}` ; \ 821 done 822 822 endif 823 823 824 824 if BUILD_OSDMENU 825 825 #OSD Menu 826 mkdir -p "$(top_builddir)/vlc-$(VERSION)/ osdmenu"827 cp $(srcdir)/share/osdmenu/*.* "$(top_builddir)/vlc-$(VERSION)/ osdmenu"826 mkdir -p "$(top_builddir)/vlc-$(VERSION)/share/osdmenu" 827 cp $(srcdir)/share/osdmenu/*.* "$(top_builddir)/vlc-$(VERSION)/share/osdmenu" 828 828 for dir in dvd dvd/selected dvd/unselect dvd/selection dvd/volume default default/selected default/selection default/volume minimal;do \ 829 mkdir -p "$(top_builddir)/vlc-$(VERSION)/ osdmenu/$$dir"; \830 for file in $(srcdir)/share/osdmenu/$${dir}/* .*;do \831 cp $$file "$(top_builddir)/vlc-$(VERSION)/osdmenu/$$dir" || true; \829 mkdir -p "$(top_builddir)/vlc-$(VERSION)/share/osdmenu/$$dir"; \ 830 for file in $(srcdir)/share/osdmenu/$${dir}/* ;do \ 831 cp -- "$$file" "$(top_builddir)/vlc-$(VERSION)/share/osdmenu/$$dir"; \ 832 832 done; \ 833 833 done 834 unix2dos $(top_builddir)/vlc-$(VERSION)/ osdmenu/*.cfg;835 for file in $(top_builddir)/vlc-$(VERSION)/ osdmenu/*.cfg; do \836 if sed 's%share/osdmenu%osdmenu%g' $$file >$$file.tmp; then :; else exit 1; fi; \837 if sed 's%/%\\%g' $$file.tmp >$$file; then :; else exit 1; fi; \838 rm -f $$file.tmp; \834 unix2dos $(top_builddir)/vlc-$(VERSION)/share/osdmenu/*.cfg; 835 for file in $(top_builddir)/vlc-$(VERSION)/share/osdmenu/*.cfg; do \ 836 sed 's%share/osdmenu%osdmenu%g' "$$file" > "$$file.tmp" || exit $$? ; \ 837 sed 's%/%\\%g' "$$file.tmp" > "$$file" || exit$$? ; \ 838 rm -f -- "$$file.tmp"; \ 839 839 done 840 840 endif … … 917 917 918 918 # Copy relevant files 919 mkdir -p $(srcdir)/tmp/vlc ;919 mkdir -p $(srcdir)/tmp/vlc 920 920 cd $(srcdir) && cp -R vlc-bundle/* AUTHORS COPYING ChangeLog README \ 921 THANKS NEWS tmp/vlc/ ;921 THANKS NEWS tmp/vlc/ 922 922 923 923 # Create debug package 924 xres -o $(srcdir)/tmp/vlc/vlc $(srcdir)/share/vlc_beos.rsrc ;925 find $(srcdir)/tmp/vlc -exec mimeset -f {} \; ;926 mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-$(VERSION) ;924 xres -o $(srcdir)/tmp/vlc/vlc $(srcdir)/share/vlc_beos.rsrc 925 find $(srcdir)/tmp/vlc -exec mimeset -f {} \; 926 mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-$(VERSION) 927 927 (cd $(srcdir)/tmp && zip -9 -r vlc-$(VERSION)-BeOS-debug.zip vlc-$(VERSION) ) 928 mv $(srcdir)/tmp/vlc-$(VERSION)-BeOS-debug.zip $(srcdir)/ ;929 mv $(srcdir)/tmp/vlc-$(VERSION) $(srcdir)/tmp/vlc ;928 mv $(srcdir)/tmp/vlc-$(VERSION)-BeOS-debug.zip $(srcdir)/ 929 mv $(srcdir)/tmp/vlc-$(VERSION) $(srcdir)/tmp/vlc 930 930 931 931 # Create normal package 932 $(STRIP) --strip-debug --strip-unneeded $(srcdir)/tmp/vlc/vlc ;932 $(STRIP) --strip-debug --strip-unneeded $(srcdir)/tmp/vlc/vlc 933 933 find $(srcdir)/tmp/vlc -name 'lib*.so' -exec $(STRIP) \ 934 --strip-debug --strip-unneeded "{}" \; ;935 xres -o $(srcdir)/tmp/vlc/vlc $(srcdir)/share/vlc_beos.rsrc ;936 find $(srcdir)/tmp/vlc -exec mimeset -f {} \; ;937 mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-$(VERSION) ;934 --strip-debug --strip-unneeded "{}" \; 935 xres -o $(srcdir)/tmp/vlc/vlc $(srcdir)/share/vlc_beos.rsrc 936 find $(srcdir)/tmp/vlc -exec mimeset -f {} \; 937 mv $(srcdir)/tmp/vlc $(srcdir)/tmp/vlc-$(VERSION) 938 938 (cd $(srcdir)/tmp && zip -9 -r vlc-$(VERSION)-BeOS.zip vlc-$(VERSION) ) 939 mv $(srcdir)/tmp/vlc-$(VERSION)-BeOS.zip $(srcdir)/ ;939 mv $(srcdir)/tmp/vlc-$(VERSION)-BeOS.zip $(srcdir)/ 940 940 941 941 # Clean up 942 rm -Rf $(srcdir)/tmp ;942 rm -Rf $(srcdir)/tmp 943 943 944 944 package-macosx: … … 962 962 cp -R extras/package/macosx/Delete_Preferences.app $(top_builddir)/vlc-$(VERSION)/Goodies/Delete\ VLC\ Preferences.app && \ 963 963 cp extras/package/macosx/README.MacOSX.rtf $(top_builddir)/vlc-$(VERSION)/Read\ Me.rtf && \ 964 cp extras/package/macosx/Resources/about_bg.png $(top_builddir)/vlc-$(VERSION)/.background/background.png ;964 cp extras/package/macosx/Resources/about_bg.png $(top_builddir)/vlc-$(VERSION)/.background/background.png 965 965 966 966 # Place a link to the application folder 967 ln -s /Applications $(top_builddir)/vlc-$(VERSION)/Applications ;967 ln -s /Applications $(top_builddir)/vlc-$(VERSION)/Applications 968 968 969 969 # Create disk image (temporarily taken from the 0.8.6-bugfix branch to provide reliable NBs) 970 echo "Creating disk image" ;971 rm -f "$(top_builddir)/vlc-$(VERSION).dmg" ;970 echo "Creating disk image" 971 rm -f "$(top_builddir)/vlc-$(VERSION).dmg" 972 972 hdiutil create -verbose -srcfolder "$(top_builddir)/vlc-$(VERSION)" \ 973 "$(top_builddir)/vlc-$(VERSION).dmg" -scrub ;974 echo "Disk image creation completed:" ;975 ls -la "$(top_builddir)/vlc-$(VERSION).dmg" ; echo ;973 "$(top_builddir)/vlc-$(VERSION).dmg" -scrub 974 echo "Disk image creation completed:" 975 ls -la "$(top_builddir)/vlc-$(VERSION).dmg" ; echo 976 976 977 977 # Create disk image 978 # echo "Creating disk image" ;979 # rm -f "$(top_builddir)/vlc-$(VERSION).dmg" ;978 # echo "Creating disk image" 979 # rm -f "$(top_builddir)/vlc-$(VERSION).dmg" 980 980 # hdiutil create -verbose -srcfolder "$(top_builddir)/vlc-$(VERSION)" \ 981 981 # "$(top_builddir)/vlc-$(VERSION).dmg" -format UDRW \ 982 # -scrub -imagekey zlib-level=9 -attach ;982 # -scrub -imagekey zlib-level=9 -attach 983 983 984 984 # Make sure the root window of the dmg will pop up when the dmg is mounted. 985 985 # Note: We dont mount in /Volumes to be sure we won't collide with an other 986 986 # finder mounted dmg with the same name. 987 # echo "Make sure the root window of the dmg will pop up when the dmg is mounted" ;988 # mkdir -p $(top_builddir)/vlcmnt ;989 # hdiutil attach -nokernel -readwrite -noverify -noautoopen -private "$(top_builddir)/vlc-$(VERSION).dmg" -mountpoint "$(top_builddir)/vlcmnt/vlc-$(VERSION)" ;990 # bless --folder "$(top_builddir)/vlcmnt/vlc-$(VERSION)/" --openfolder "$(top_builddir)/vlcmnt/vlc-$(VERSION)" ;987 # echo "Make sure the root window of the dmg will pop up when the dmg is mounted" 988 # mkdir -p $(top_builddir)/vlcmnt 989 # hdiutil attach -nokernel -readwrite -noverify -noautoopen -private "$(top_builddir)/vlc-$(VERSION).dmg" -mountpoint "$(top_builddir)/vlcmnt/vlc-$(VERSION)" 990 # bless --folder "$(top_builddir)/vlcmnt/vlc-$(VERSION)/" --openfolder "$(top_builddir)/vlcmnt/vlc-$(VERSION)" 991 991 # sleep 1 # Make sure operation completes 992 992 # cd "$(srcdir)" 993 993 994 994 # Unmount the image now 995 # hdiutil detach "$(top_builddir)/vlcmnt/vlc-$(VERSION)" ;996 # rm -R $(top_builddir)/vlcmnt ;995 # hdiutil detach "$(top_builddir)/vlcmnt/vlc-$(VERSION)" 996 # rm -R $(top_builddir)/vlcmnt 997 997 998 998 # Make sure the image is not writable 999 999 # Note: We can't directly create a read only dmg as we do the bless stuff 1000 echo "Make the disk image read-only" ;1001 mv "$(top_builddir)/vlc-$(VERSION).dmg" "$(top_builddir)/vlc-$(VERSION)-rw.dmg" ;1002 hdiutil convert "$(top_builddir)/vlc-$(VERSION)-rw.dmg" -format UDZO -o "$(top_builddir)/vlc-$(VERSION).dmg" ;1003 rm "$(top_builddir)/vlc-$(VERSION)-rw.dmg" ;1000 echo "Make the disk image read-only" 1001 mv "$(top_builddir)/vlc-$(VERSION).dmg" "$(top_builddir)/vlc-$(VERSION)-rw.dmg" 1002 hdiutil convert "$(top_builddir)/vlc-$(VERSION)-rw.dmg" -format UDZO -o "$(top_builddir)/vlc-$(VERSION).dmg" 1003 rm "$(top_builddir)/vlc-$(VERSION)-rw.dmg" 1004 1004 1005 1005 # We are done 1006 echo "Disk image creation completed:" ;1007 ls -la "$(top_builddir)/vlc-$(VERSION).dmg" ; echo ;1006 echo "Disk image creation completed:" 1007 ls -la "$(top_builddir)/vlc-$(VERSION).dmg" ; echo 1008 1008 1009 1009 # Clean up 1010 rm -Rf "$(top_builddir)/vlc-$(VERSION)" ;1010 rm -Rf "$(top_builddir)/vlc-$(VERSION)" 1011 1011 1012 1012 package-macosx-zip: … … 1057 1057 hdiutil create -srcfolder "$(top_builddir)/vlc-plugin-$(VERSION)" \ 1058 1058 "$(top_builddir)/vlc-plugin-$(VERSION).dmg" -format UDZO \ 1059 -scrub -imagekey zlib-level=9 ;1059 -scrub -imagekey zlib-level=9 1060 1060 echo "Disk image creation completed:" 1061 1061 rm -rf "$(top_builddir)/vlc-plugin-$(VERSION)" src/config/dirs.c
r7e86c20 re104a2e 54 54 const char *config_GetDataDir( void ) 55 55 { 56 #if defined (WIN32) || defined (UNDER_CE) 57 return vlc_global()->psz_vlcpath; 58 #elif defined(__APPLE__) || defined (SYS_BEOS) 56 #if defined (WIN32) || defined(__APPLE__) || defined (SYS_BEOS) 59 57 static char path[PATH_MAX] = ""; 60 58 … … 78 76 const char *config_GetConfDir( void ) 79 77 { 80 #if defined (WIN32) || defined (UNDER_CE) 81 return vlc_global()->psz_vlcpath; 82 #elif defined(__APPLE__) || defined (SYS_BEOS) 78 #if defined (WIN32) || defined(__APPLE__) || defined (SYS_BEOS) 83 79 static char path[PATH_MAX] = ""; 84 80
