Changeset 495

Show
Ignore:
Timestamp:
01/13/09 19:00:15 (10 months ago)
Author:
jdecq
Message:

Prep for a dev build with no jar

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/uploadr/Makefile

    r469 r495  
    132132        @echo "  packaging, mar: Build a single package or update but requires" 
    133133        @echo "              de-de, en-US, es-us, fr-fr, it-it, ko-kr, pt-br, or zh-hk" 
     134        @echo "              dev for development build: i.e. unjared content" 
    134135 
    135136all: all-build all-mar 
     
    181182ja-jp: 
    182183        @echo "Building Japanese (ja-jp)" 
     184dev: 
     185        @echo "Development Build" 
    183186 
    184187packaging: 
     
    255258        mkdir $(BUILD)/jar/content 
    256259        mkdir $(BUILD)/jar/content/uploadr 
    257         cp $(SRC)/Resources/chrome/content/uploadr/*.* $(BUILD)/jar/content/uploadr/ 
     260        cp $(SRC)/Resources/chrome/content/uploadr/*.js $(BUILD)/jar/content/uploadr/ 
     261        cp $(SRC)/Resources/chrome/content/uploadr/*.xul $(BUILD)/jar/content/uploadr/ 
    258262        mkdir $(BUILD)/jar/content/hacks 
    259263ifeq (mac, $(PLATFORM)) 
     
    277281        mkdir $(BUILD)/jar/locale/$(INTL) 
    278282        cp $(SRC)/Resources/chrome/locale/$(INTL)/*.* $(BUILD)/jar/locale/$(INTL)/ 
     283ifeq (dev, $(filter dev, $(MAKECMDGOALS))) 
     284        sed 's/en-US/$(INTL)/g' $(SRC)/Resources/chrome/chrome.manifest > \ 
     285                $(RES)/chrome/chrome.manifest 
     286else 
    279287        sed 's/en-US/$(INTL)/g' $(SRC)/Resources/chrome/chrome.manifest.prod > \ 
    280288                $(RES)/chrome/chrome.manifest 
     289endif 
    281290        mkdir $(BUILD)/jar/skin 
    282291#ifeq (mac, $(PLATFORM)) 
     
    297306        cp $(SRC)/Resources/chrome/skin/uploadr/*.gif $(BUILD)/jar/skin/uploadr/ 
    298307        cp $(SRC)/Resources/chrome/skin/uploadr/*.png $(BUILD)/jar/skin/uploadr/ 
     308 
     309ifeq (dev, $(filter dev, $(MAKECMDGOALS))) 
     310        cd $(BUILD)/jar/ && mv content $(RES)/chrome/ && mv locale $(RES)/chrome/ && mv skin $(RES)/chrome/ 
     311else 
    299312ifeq (win, $(PLATFORM)) 
    300313        cd $(BUILD)/jar/ && zip uploadr.zip -r content locale skin 
     
    303316endif 
    304317        mv $(BUILD)/jar/uploadr.zip $(RES)/chrome/uploadr.jar 
     318endif 
    305319        rm -rf $(BUILD)/jar 
    306320 
     
    353367                $(BUILD)/config.ini 
    354368        rm $(BUILD)/config-temp.ini 
    355  
     369ifeq (dev, $(filter dev, $(MAKECMDGOALS))) 
     370        perl win_installer/utf16.pl \ 
     371                win_installer/build_dev.nsi > \ 
     372                $(BUILD)/build.nsi 
     373else 
    356374        perl win_installer/utf16.pl \ 
    357375                win_installer/build.nsi > \ 
    358376                $(BUILD)/build.nsi 
    359  
     377endif 
    360378        cp win_installer/vcredist_x86.exe $(BUILD)/vcredist_x86.exe 
    361379