Changeset e104a2e689d4a1de68655d6e7936a6ceb87e6283

Show
Ignore:
Timestamp:
05/22/08 18:32:56 (4 months ago)
Author:
Rémi Denis-Courmont <rem@videolan.org>
git-committer:
Rémi Denis-Courmont <rem@videolan.org> 1211473976 +0300
git-parent:

[3f02d5ddbd48efd89f6e3ffaff3e24e86220b52c]

git-author:
Rémi Denis-Courmont <rem@videolan.org> 1211473925 +0300
Message:

Use the same directory layout on all platforms.

It was an artificially-created mess. Besides, many other Windows
applications also have a data, datadir or share directory.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Makefile.am

    r3f02d5d re104a2e  
    676676    unix2dos "$(top_builddir)/vlc-$(VERSION)/"*.txt 
    677677 
    678     mkdir $(top_builddir)/vlc-$(VERSION)/locale 
     678    mkdir -p $(top_builddir)/vlc-$(VERSION)/share/locale 
    679679    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" ; \ 
    681681      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" \ 
    683683            || true ; \ 
    684684    done 
    685685 
    686686if 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 
    709709endif 
    710710 
    711711if 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/ 
     748endif 
     749 
     750    cp $(srcdir)/share/vlc48x48.ico $(top_builddir)/vlc-$(VERSION)/ 
    751751 
    752752if BUILD_MOZILLA 
    753753    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/ 
    755755endif 
    756756 
    757757if BUILD_ACTIVEX 
    758758    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/ 
    764764endif 
    765765# Rebase all those DLLs to speed up loading (need cygwin rebase) 
     
    795795    mkdir -p $(top_builddir)/vlc-$(VERSION)/skins/fonts 
    796796    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 ; \ 
    798798    done 
    799799    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 ; \ 
    801801    done 
    802802endif 
     
    804804if BUILD_LUA 
    805805#Lua Scripts 
    806     $(INSTALL) -d $(top_builddir)/vlc-$(VERSION)/scripts/playlist 
     806    $(INSTALL) -d $(top_builddir)/vlc-$(VERSION)/share/lua/playlist 
    807807    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)/scripts/meta 
     808      $(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 
    811811    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)/scripts/intf 
     812      $(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 
    815815    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)/scripts/intf/modules 
     816      $(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 
    819819    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 
    822822endif 
    823823 
    824824if BUILD_OSDMENU 
    825825#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" 
    828828    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"; \ 
    832832        done; \ 
    833833    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"; \ 
    839839    done 
    840840endif 
     
    917917 
    918918# Copy relevant files 
    919     mkdir -p $(srcdir)/tmp/vlc ; 
     919    mkdir -p $(srcdir)/tmp/vlc 
    920920    cd $(srcdir) && cp -R vlc-bundle/* AUTHORS COPYING ChangeLog README \ 
    921       THANKS NEWS tmp/vlc/ ; 
     921      THANKS NEWS tmp/vlc/ 
    922922 
    923923# 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) 
    927927    (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 
    930930 
    931931# Create normal package 
    932     $(STRIP) --strip-debug --strip-unneeded $(srcdir)/tmp/vlc/vlc ; 
     932    $(STRIP) --strip-debug --strip-unneeded $(srcdir)/tmp/vlc/vlc 
    933933    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) 
    938938    (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)/ 
    940940 
    941941# Clean up 
    942     rm -Rf $(srcdir)/tmp ; 
     942    rm -Rf $(srcdir)/tmp 
    943943 
    944944package-macosx: 
     
    962962          cp -R  extras/package/macosx/Delete_Preferences.app $(top_builddir)/vlc-$(VERSION)/Goodies/Delete\ VLC\ Preferences.app && \ 
    963963      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 
    965965 
    966966# 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 
    968968 
    969969# 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" 
    972972    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 
    976976 
    977977# 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" 
    980980#   hdiutil create -verbose -srcfolder "$(top_builddir)/vlc-$(VERSION)" \ 
    981981#     "$(top_builddir)/vlc-$(VERSION).dmg" -format UDRW \ 
    982 #     -scrub -imagekey zlib-level=9 -attach ; 
     982#     -scrub -imagekey zlib-level=9 -attach 
    983983 
    984984# Make sure the root window of the dmg will pop up when the dmg is mounted. 
    985985# Note: We dont mount in /Volumes to be sure we won't collide with an other 
    986986# 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)" 
    991991#   sleep 1 # Make sure operation completes 
    992992#   cd "$(srcdir)" 
    993993 
    994994# 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 
    997997 
    998998# Make sure the image is not writable 
    999999# 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" 
    10041004 
    10051005# 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 
    10081008 
    10091009# Clean up 
    1010     rm -Rf "$(top_builddir)/vlc-$(VERSION)" ; 
     1010    rm -Rf "$(top_builddir)/vlc-$(VERSION)" 
    10111011 
    10121012package-macosx-zip: 
     
    10571057    hdiutil create -srcfolder "$(top_builddir)/vlc-plugin-$(VERSION)" \ 
    10581058      "$(top_builddir)/vlc-plugin-$(VERSION).dmg" -format UDZO \ 
    1059       -scrub -imagekey zlib-level=9 ; 
     1059      -scrub -imagekey zlib-level=9 
    10601060    echo "Disk image creation completed:" 
    10611061    rm -rf "$(top_builddir)/vlc-plugin-$(VERSION)" 
  • src/config/dirs.c

    r7e86c20 re104a2e  
    5454const char *config_GetDataDir( void ) 
    5555{ 
    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) 
    5957    static char path[PATH_MAX] = ""; 
    6058 
     
    7876const char *config_GetConfDir( void ) 
    7977{ 
    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) 
    8379    static char path[PATH_MAX] = ""; 
    8480