
VERSION = 0.13

ao2xhtml : ao2xhtml.rb ku2utf8table.rb
	rm -fr ao2xhtml.app
	/usr/local/bin/platypus -D -a 'ao2xhtml' -t 'Ruby' -o 'ProgressBar' -u 'Chajka' -i '/usr/bin/ruby' -V '$(VERSION)' -s '????' -I 'org.mell.ao2xhtml' -X 'txt' -T '****|fold' -f ku2utf8table.rb ao2xhtml.rb ao2xhtml.app

ao2xhtmlt : ao2xhtml.rb ku2utf8table.rb
	rm -fr ao2xhtml.app
	/usr/local/bin/platypus -DR -a 'ao2xhtml' -t 'Ruby' -o 'TextWindow' -u 'Chajka' -i '/usr/bin/ruby' -V '$(VERSION)' -s '????' -I 'org.mell.ao2xhtml' -X 'txt' -T '****|fold' -f ku2utf8table.rb ao2xhtml.rb ao2xhtml.app

archive : ao2xhtml.app
	rm -fr ao2xhtml/ao2xhtml.app *.zip
	cp -r ao2xhtml.app ao2xhtml
	stuff --format=zip --level=16 --name='ao2xhtml for mac $(VERSION).zip' ao2xhtml

append : ao2xhtml.app/Contents/Resources/script

ao2xhtml.app/Contents/Resources/script : ao2xhtml.rb
	cp ao2xhtml.rb ao2xhtml.app/Contents/Resources/script && cp ao2xhtml.rb ao2xhtml.app/Contents/Resources/.script
