git.iko.soy/typeable/pandoc
on master help sign in
Changes to OSX packaging:

+ Use $(NAME) instead of hard-coded 'Pandoc' for package and dmg names + Create dmg in .. (like debs) + Modified website target to get dmg from .. git-svn-id: https://pandoc.googlecode.com/svn/trunk@90 788f1e2b-df1e-0410-8736-df70ead52e1b

commit668a48534edf47d5b65f5589af7ca9350f44a6d3 authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateSun 12 Nov 2006, 00:24 (20 years ago) parentfa645ee
1 file changed+11−11
Makefile+11−11
Makefile+11−11
@@ -194,7 +194,7 @@ uninstall: uninstall-program
194194osx_dest:=osx-pkg-tmp
195195osx_src:=osx
196196doc_more:=README.rtf LICENSE.rtf $(osx_src)/Welcome.rtf
197−osx_pkg_name:=Pandoc_$(VERSION).pkg
197+osx_pkg_name:=$(NAME)_$(VERSION).pkg
198198cleanup_files+=$(osx_dest) $(doc_more) $(osx_pkg_name)
199199osx-pkg-prep: build-program $(osx_dest)
200200$(osx_dest)/: $(doc_more)
@@ -225,20 +225,20 @@ osx-pkg: osx-pkg-prep
225225 -rm -rf $(osx_dest)
226226
227227.PHONY: osx-dmg
228−osx_dmg_name:=Pandoc.dmg
229−osx_dmg_volume:="Pandoc $(VERSION)"
230−cleanup_files+=$(osx_dmg_name)
231−osx-dmg: $(osx_dmg_name)
232−$(osx_dmg_name): $(osx_pkg_name)
228+osx_dmg_name:=$(NAME).dmg
229+osx_udzo_name:=$(NAME).udzo.dmg
230+osx_dmg_volume:="$(NAME) $(VERSION)"
231+osx-dmg: ../$(osx_dmg_name)
232+../$(osx_dmg_name): $(osx_pkg_name)
233233 -rm -f $(osx_dmg_name)
234234 hdiutil create $(osx_dmg_name) -size 05m -fs HFS+ -volname $(osx_dmg_volume)
235235 dev_handle=`hdid $(osx_dmg_name) | grep Apple_HFS | \
236236 perl -e '\$$_=<>; /^\\/dev\\/(disk.)/; print \$$1'`; \
237237 ditto $(osx_pkg_name) /Volumes/$(osx_dmg_volume)/$(osx_pkg_name); \
238238 hdiutil detach $$dev_handle
239− hdiutil convert $(osx_dmg_name) -format UDZO -o Pandoc.udzo.dmg
239+ hdiutil convert $(osx_dmg_name) -format UDZO -o $(osx_udzo_name)
240240 -rm -f $(osx_dmg_name)
241− mv Pandoc.udzo.dmg $(osx_dmg_name)
241+ mv $(osx_udzo_name) ../$(osx_dmg_name)
242242
243243.PHONY: test test-markdown
244244test: $(MAIN)
@@ -294,8 +294,8 @@ make_page:=./$(MAIN) -s -B $(web_src)/header.html \
294294cleanup_files+=$(web_dest)
295295website: $(web_dest)
296296$(web_dest)/: $(MAIN) html $(tarball_name)
297− @[ -f $(osx_dmg_name) ] || { \
298− echo "*** Missing $(osx_dmg_name). ***"; \
297+ @[ -f ../$(osx_dmg_name) ] || { \
298+ echo "*** Missing ../$(osx_dmg_name). ***"; \
299299 exit 1; \
300300 }
301301 @[ -f ../$(deb_main) ] || { \
@@ -306,7 +306,7 @@ $(web_dest)/: $(MAIN) html $(tarball_name)
306306 ( \
307307 mkdir $(web_dest); \
308308 cp -r html $(web_dest)/doc; \
309− cp $(osx_dmg_name) $(web_dest)/; \
309+ cp ../$(osx_dmg_name) $(web_dest)/; \
310310 cp ../$(deb_main) $(web_dest)/; \
311311 cp $(tarball_name) $(web_dest)/; \
312312 cp $(web_src)/*.css $(web_dest)/; \