# Readme paths: READMEMACNAME = ReadMe\ files\ in\ all\ languages.localized READMEMACAPPNAME = Read\ Me.app USAGEMACAPPNAME = Usage.app READMEMAC = $(USERDOCMACDIR)/$(READMEMACNAME) READMEMACAPP = $(USERDOCMACDIR)/$(READMEMACAPPNAME) USAGEMACAPP = $(USERDOCMACDIR)/$(USAGEMACAPPNAME) ContRes = Contents/Resources # Create a pdf ReadMe.app that will serve the language version best matching the # user preferences: readme-app-mac: readme-mac # add test for whether the Readme files are already downloaded, if not, give a message: @echo @echo "*** Making locale-sensitive PDF readme application: ***" @echo @$(CP) $(TMP)/Mac/README.pdf $(BUILD)/$(READMEMACAPPNAME)/$(ContRes)/en.lproj/Read\ Me.pdf @$(CP) $(TMP)/Mac/LUEMINUT.pdf $(BUILD)/$(READMEMACAPPNAME)/$(ContRes)/fi.lproj/Lue\ minut.pdf @$(CP) $(TMP)/Mac/LESMEG.pdf $(BUILD)/$(READMEMACAPPNAME)/$(ContRes)/no.lproj/Les\ meg.pdf @$(CP) $(TMP)/Mac/LOGAMU.pdf $(BUILD)/$(READMEMACAPPNAME)/$(ContRes)/se.lproj/Loga\ mu.pdf @$(CP) $(TMP)/Mac/LÅGÅMUV.pdf $(BUILD)/$(READMEMACAPPNAME)/$(ContRes)/smj.lproj/Lågå\ muv.pdf @$(CP) $(TMP)/Mac/LÄSMIG.pdf $(BUILD)/$(READMEMACAPPNAME)/$(ContRes)/sv.lproj/Läs\ mig.pdf # Create a pdf Usage.app that will serve the language version best matching the # user preferences: usage-app-mac: readme-app-mac # add test for whether the Usage files are already downloaded, if not, give a message: @echo @echo "*** Making locale-sensitive PDF usage application: ***" @echo @$(CP) $(TMP)/Usage.pdf $(BUILD)/$(USAGEMACAPPNAME)/$(ContRes)/en.lproj/ @$(CP) $(TMP)/Käyttäminen.pdf $(BUILD)/$(USAGEMACAPPNAME)/$(ContRes)/fi.lproj/ @$(CP) $(TMP)/Anvendelse.pdf $(BUILD)/$(USAGEMACAPPNAME)/$(ContRes)/no.lproj/ @$(CP) $(TMP)/Geavaheapmi.pdf $(BUILD)/$(USAGEMACAPPNAME)/$(ContRes)/se.lproj/ @$(CP) $(TMP)/Adno.pdf $(BUILD)/$(USAGEMACAPPNAME)/$(ContRes)/smj.lproj/ @$(CP) $(TMP)/Användning.pdf $(BUILD)/$(USAGEMACAPPNAME)/$(ContRes)/sv.lproj/ # Copy all readme files to a Mac-specific dir with localised dir name: readme-mac: prepare-build @echo @echo "*** Making locale-sensitive folder of readme files: ***" @echo @$(CP) $(TMP)/Mac/README.pdf $(BUILD)/$(READMEMACNAME)/Read\ Me.pdf @$(CP) $(TMP)/Mac/LUEMINUT.pdf $(BUILD)/$(READMEMACNAME)/Lue\ minut.pdf @$(CP) $(TMP)/Mac/LESMEG.pdf $(BUILD)/$(READMEMACNAME)/Les\ meg.pdf @$(CP) $(TMP)/Mac/LOGAMU.pdf $(BUILD)/$(READMEMACNAME)/Loga\ mu.pdf @$(CP) $(TMP)/Mac/LÅGÅMUV.pdf $(BUILD)/$(READMEMACNAME)/Lågå\ muv.pdf @$(CP) $(TMP)/Mac/LÄSMIG.pdf $(BUILD)/$(READMEMACNAME)/Läs\ mig.pdf @$(CP) $(TMP)/Mac/README.txt $(BUILD)/$(READMEMACNAME)/Read\ Me.txt @$(CP) $(TMP)/Mac/LUEMINUT.txt $(BUILD)/$(READMEMACNAME)/Lue\ minut.txt @$(CP) $(TMP)/Mac/LESMEG.txt $(BUILD)/$(READMEMACNAME)/Les\ meg.txt @$(CP) $(TMP)/Mac/LOGAMU.txt $(BUILD)/$(READMEMACNAME)/Loga\ mu.txt @$(CP) $(TMP)/Mac/LÅGÅMUV.txt $(BUILD)/$(READMEMACNAME)/Lågå\ muv.txt @$(CP) $(TMP)/Mac/LÄSMIG.txt $(BUILD)/$(READMEMACNAME)/Läs\ mig.txt # Copy all readme files to a Mac-specific dir with localised dir name: usage-mac: prepare-build # usage @echo @echo "*** Making locale-sensitive folder of usage files: ***" @echo @$(CP) $(TMP)/Usage.pdf $(BUILD)/$(READMEMACNAME)/ @$(CP) $(TMP)/Käyttäminen.pdf $(BUILD)/$(READMEMACNAME)/ @$(CP) $(TMP)/Anvendelse.pdf $(BUILD)/$(READMEMACNAME)/ @$(CP) $(TMP)/Geavaheapmi.pdf $(BUILD)/$(READMEMACNAME)/ @$(CP) $(TMP)/Adno.pdf $(BUILD)/$(READMEMACNAME)/ @$(CP) $(TMP)/Användning.pdf $(BUILD)/$(READMEMACNAME)/ @$(CP) $(TMP)/Usage.txt $(BUILD)/$(READMEMACNAME)/ @$(CP) $(TMP)/Käyttäminen.txt $(BUILD)/$(READMEMACNAME)/ @$(CP) $(TMP)/Anvendelse.txt $(BUILD)/$(READMEMACNAME)/ @$(CP) $(TMP)/Geavaheapmi.txt $(BUILD)/$(READMEMACNAME)/ @$(CP) $(TMP)/Adno.txt $(BUILD)/$(READMEMACNAME)/ @$(CP) $(TMP)/Användning.txt $(BUILD)/$(READMEMACNAME)/ # Prepare the build dir: prepare-build: @echo @echo "*** Preparing build folder for readme files: ***" @echo @$(MKDIR) $(BUILD) @rsync -rq \ --exclude .svn/ \ --exclude .DS_Store \ --exclude .LSOverride \ $(READMEMAC) $(BUILD)/ \ $(READMEMACAPP) $(BUILD)/ # $(USAGEMACAPP) $(BUILD) # Download the README files, and give them appropriate names: msdoc-download: readme readme: readme-m readme-win usage readme-m: @$(MKDIR) $(TMP)/Mac @echo @echo "*** downloading Mac README files ***" @echo @echo "********* TXT files *********" @curl -o $(TMP)/README.tmp $(READMESITEMS)/mac-install.en.txt @curl -o $(TMP)/LUEMINUT.tmp $(READMESITEMS)/mac-install.fi.txt @curl -o $(TMP)/LESMEG.tmp $(READMESITEMS)/mac-install.nb.txt @curl -o $(TMP)/LOGAMU.tmp $(READMESITEMS)/mac-install.se.txt @curl -o $(TMP)/LÅGÅMUV.tmp $(READMESITEMS)/mac-install.smj.txt @curl -o $(TMP)/LÄSMIG.tmp $(READMESITEMS)/mac-install.sv.txt @cat BOM.txt $(TMP)/README.tmp > $(TMP)/Mac/README.txt @cat BOM.txt $(TMP)/LUEMINUT.tmp > $(TMP)/Mac/LUEMINUT.txt @cat BOM.txt $(TMP)/LESMEG.tmp > $(TMP)/Mac/LESMEG.txt @cat BOM.txt $(TMP)/LOGAMU.tmp > $(TMP)/Mac/LOGAMU.txt @cat BOM.txt $(TMP)/LÅGÅMUV.tmp > $(TMP)/Mac/LÅGÅMUV.txt @cat BOM.txt $(TMP)/LÄSMIG.tmp > $(TMP)/Mac/LÄSMIG.txt @rm -f $(TMP)/*.tmp @echo "********* PDF files *********" @curl -o $(TMP)/Mac/README.pdf $(READMESITEMS)/mac-install.en.pdf @curl -o $(TMP)/Mac/LUEMINUT.pdf $(READMESITEMS)/mac-install.fi.pdf @curl -o $(TMP)/Mac/LESMEG.pdf $(READMESITEMS)/mac-install.nb.pdf @curl -o $(TMP)/Mac/LOGAMU.pdf $(READMESITEMS)/mac-install.se.pdf @curl -o $(TMP)/Mac/LÅGÅMUV.pdf $(READMESITEMS)/mac-install.smj.pdf @curl -o $(TMP)/Mac/LÄSMIG.pdf $(READMESITEMS)/mac-install.sv.pdf readme-win: @$(MKDIR) $(TMP)/Win @echo @echo "*** downloading Windows README files ***" @echo @echo "********* TXT files *********" @curl -o $(TMP)/README.tmp $(READMESITEMS)/win-install.en.txt @curl -o $(TMP)/LUEMINUT.tmp $(READMESITEMS)/win-install.fi.txt @curl -o $(TMP)/LESMEG.tmp $(READMESITEMS)/win-install.nb.txt @curl -o $(TMP)/LOGAMU.tmp $(READMESITEMS)/win-install.se.txt @curl -o $(TMP)/LÅGÅMUV.tmp $(READMESITEMS)/win-install.smj.txt @curl -o $(TMP)/LÄSMIG.tmp $(READMESITEMS)/win-install.sv.txt @cat BOM.txt $(TMP)/README.tmp > $(TMP)/Win/README.txt @cat BOM.txt $(TMP)/LUEMINUT.tmp > $(TMP)/Win/LUEMINUT.txt @cat BOM.txt $(TMP)/LESMEG.tmp > $(TMP)/Win/LESMEG.txt @cat BOM.txt $(TMP)/LOGAMU.tmp > $(TMP)/Win/LOGAMU.txt @cat BOM.txt $(TMP)/LÅGÅMUV.tmp > $(TMP)/Win/LÅGÅMUV.txt @cat BOM.txt $(TMP)/LÄSMIG.tmp > $(TMP)/Win/LÄSMIG.txt @rm -f $(TMP)/*.tmp @echo "********* PDF files *********" @curl -o $(TMP)/Win/README.pdf $(READMESITEMS)/win-install.en.pdf @curl -o $(TMP)/Win/LUEMINUT.pdf $(READMESITEMS)/win-install.fi.pdf @curl -o $(TMP)/Win/LESMEG.pdf $(READMESITEMS)/win-install.nb.pdf @curl -o $(TMP)/Win/LOGAMU.pdf $(READMESITEMS)/win-install.se.pdf @curl -o $(TMP)/Win/LÅGÅMUV.pdf $(READMESITEMS)/win-install.smj.pdf @curl -o $(TMP)/Win/LÄSMIG.pdf $(READMESITEMS)/win-install.sv.pdf # Download the How-to-use files, and give them appropriate names: usage: $(MKDIR) $(TMP) @echo @echo "*** downloading USAGE files ***" @echo @echo "********* TXT files *********" @curl -o $(TMP)/Usage.tmp $(READMESITEMS)/usage.en.txt @curl -o $(TMP)/Käyttäminen.tmp $(READMESITEMS)/usage.fi.txt @curl -o $(TMP)/Anvendelse.tmp $(READMESITEMS)/usage.nb.txt @curl -o $(TMP)/Geavaheapmi.tmp $(READMESITEMS)/usage.se.txt @curl -o $(TMP)/Adno.tmp $(READMESITEMS)/usage.smj.txt @curl -o $(TMP)/Användning.tmp $(READMESITEMS)/usage.sv.txt @cat BOM.txt $(TMP)/Usage.tmp > $(TMP)/Usage.txt @cat BOM.txt $(TMP)/Käyttäminen.tmp > $(TMP)/Käyttäminen.txt @cat BOM.txt $(TMP)/Anvendelse.tmp > $(TMP)/Anvendelse.txt @cat BOM.txt $(TMP)/Geavaheapmi.tmp > $(TMP)/Geavaheapmi.txt @cat BOM.txt $(TMP)/Adno.tmp > $(TMP)/Adno.txt @cat BOM.txt $(TMP)/Användning.tmp > $(TMP)/Användning.txt @rm -f $(TMP)/*.tmp @echo "********* PDF files *********" @curl -o $(TMP)/Usage.pdf $(READMESITEMS)/usage.en.pdf @curl -o $(TMP)/Käyttäminen.pdf $(READMESITEMS)/usage.fi.pdf @curl -o $(TMP)/Anvendelse.pdf $(READMESITEMS)/usage.nb.pdf @curl -o $(TMP)/Geavaheapmi.pdf $(READMESITEMS)/usage.se.pdf @curl -o $(TMP)/Adno.pdf $(READMESITEMS)/usage.smj.pdf @curl -o $(TMP)/Användning.pdf $(READMESITEMS)/usage.sv.pdf