################ # PLies # MAIN MAKEFILE ver=1.6 files=Makefile burst.pl INSTALL ChangeLog NEWS pylize.js logo/ css/ perl_include/ default/ w3c/ blue/ round/ podium/ #### PERL=perl BURST=../PLies/burst.pl #### extract presentation name (from directory name) presentation=`pwd | sed 's/.*\/\([^\/]*\)/\1/g'` all: index.html clean: -rm -f slide*.html index*.html *~ $(presentation).zip index.html: all.htm infos.txt Makefile $(PERL) $(BURST) #### create default files all.htm: @echo -e '\n\ \n\ \n\ \n\ Overview \n\ \n\ \n\ \n\

title

\n\

subtitle

\n\

slide heading 1

\n\ content \n\

slide heading 2

\n\ more content \n\ \n\ \n\ ' | sed -e 's/^[ ]*//' -e 's/[ ]*$$//' >> $@ @echo "--- created template all.htm (content of your presentation) ---" infos.txt: @echo -e 'charset = ISO-8859-2 \n\ author = Dobrica Pavlinušić \n\ authorUrl = mailto:dpavlin@rot13.org \n\ author2 = Hrvatska Udruga Linux Korisnika \n\ author2Url = http://www.linux.hr/ \n\ date = yyyy-mm-dd \n\ #logoFile = logo.gif \n\ #logoLink = http://www.rot13.org/~dpavlin/ \n\ #logoAlt = logo \n\ #logoFile2 = \n\ #logoLink2 = \n\ #logoAlt2 = \n\ talkTitle = Title \n\ talkSubTitle = SubTitle \n\ loc_toc = Sadržaj \n\ loc_by = \n\ # author separator \n\ loc_amp =
\n\ # $loc_slide nr $loc_of total \n\ loc_slide = Slide \n\ loc_of = of \n\ # \n\ # templates for persentations, uncomment one \n\ # \n\ # default, XLSies look-a-like \n\ #template=../PLies/default \n\ #cssStandard=../PLies/css/default.css \n\ # \n\ # w3c (like original slidemaker.pl) \n\ #template = ../PLies/w3c \n\ #cssStandard=../PLies/css/default.css \n\ # \n\ # blue \n\ #template=../PLies/blue \n\ #cssStandard=../PLies/css/blue.css \n\ # \n\ # round (somewhat like my web page) \n\ #template=../PLies/round \n\ #cssStandard=../PLies/round/black.css \n\ # \n\ # podium look-a-like \n\ #template = ../PLies/podium \n\ #cssStandard=../PLies/podium/podium.css \n\ ' | sed -e 's/^[ ]*//' -e 's/[ ]*$$//' >> $@ @echo "--- created template infos.txt (presentation meta data) ---" #### make distribution dist: @test Changelog -a -r burst.pl || ( echo "make dist is for packing distribution!" && exit 1 ) rm -f ChangeLog all.htm infos.txt slide*html index*html *~ */*~ rcs2log -h rot13.org > ChangeLog rm -Rf PLies-$(ver) mkdir PLies-$(ver) cp -rP $(files) PLies-$(ver) rm -Rf PLies-$(ver)/CVS PLies-$(ver)/*/CVS tar cfvpz ../PLies-$(ver).tar.gz PLies-$(ver)/ rm -Rf PLies-$(ver) cd .. ; ln -sf PLies-$(ver).tar.gz PLies.tar.gz #### pack presentation in zip pack: all.htm infos.txt Makefile $(PERL) $(BURST) pack=1 | zip -j -9 -q -@ $(presentation).zip $(PERL) $(BURST) @echo "--- created presentation archive $(presentation).zip ---"