Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

136 lines (105 sloc) 2.909 kb
# Makefile
SHELL:=/bin/sh
RUBY=/usr/bin/ruby
.PHONY: default doc test other
do: release
reminder:
ruby -I lib samples/reminder.rb
default: test
bday:
@ruby18 -I . vcf-to-ics.rb < _all.vcf | tee _bday.ics
doc-upload:
cd doc; scp -r . sam@rubyforge.org:/var/www/gforge-projects/vpim/
agent-upload:
rsync -v --archive --compress --cvs-exclude --exclude=.svn/ --del lib octet:webapps/agent/
RDFLAGS = -w2
#--diagram
# --main doc/foo.html
TEST=test/test_all.rb
dcal:
sh -c "./ics-dump.rb ~/Library/Calendars/Play.ics"
sh -c "./ics-dump.rb ~/Library/Calendars/Events.ics"
test:
$(RUBY) $(TEST)
for e in ex_*.rb; do $(RUBY) -w -I lib $$e; done >/dev/null
#/usr/bin/ruby -w -I lib $(TEST)
#/opt/local/bin/ruby -w -I lib $(TEST)
test_new:
for r in /opt/local/bin/ruby /usr/local/bin/ruby18; do $$r -w $(TEST); done
test_old:
for r in /usr/bin/ruby; do $$r -w $(TEST); done
.PHONY: coverage
coverage:
rcov -Ilib -x "^/" test/test_all.rb
open coverage/index.html
outline:
zsh ./outline.sh > outline.txt
.PHONY: tags
tags:
/sw/bin/ctags -R --extra=+f lib test
#RUBYLIB=/Users/sam/p/ruby/ruby/lib /usr/local/bin/rdoc18 -f tags lib
#mv tags tags.ctags
#sort tags.ctags tags.rdoc > tags
ri:
rdoc18 -f ri lib
open:
open doc/index.html
SAMPLES := \
samples/ab-query.rb \
samples/cmd-itip.rb \
samples/ex_get_vcard_photo.rb \
samples/ex_cpvcard.rb \
samples/ex_mkvcard.rb \
samples/ex_mkv21vcard.rb \
samples/ex_mkyourown.rb \
samples/ics-dump.rb \
samples/ics-to-rss.rb \
samples/mutt-aliases-to-vcf.rb \
samples/reminder.rb \
samples/rrule.rb \
samples/tabbed-file-to-vcf.rb \
samples/vcf-dump.rb \
samples/vcf-lines.rb \
samples/vcf-to-mutt.rb \
samples/vcf-to-ics.rb \
.PHONY: doc
doc:
rm -rf doc/
rdoc $(RDFLAGS) lib/vpim CHANGES COPYING README samples/README.mutt
for s in $(SAMPLES); do cp $$s doc/`basename $$s .rb`.txt; done
chmod u=rw doc/*.txt
chmod go=r doc/*.txt
mkdir -p $(HOME)/Sites/vpim
cp -r doc/* $(HOME)/Sites/vpim/
open doc/index.html
ruby -I lib -w -rpp ex_ics_api.rb > ex_ics_api.out
V:=$(shell ruby stamp.rb)
P:=vpim-$V
R:=../releases/$P
release: stamp doc pkg gem
install:
for r in /usr/bin/ruby /opt/local/bin/ruby ruby18; do (cd $R; $$r install.rb config; sudo $$r install.rb install); done
stamp:
ruby stamp.rb $V > lib/vpim/version.rb
gem:
mkdir -p ../releases
mkdir -p bin
cp -v samples/reminder.rb bin/reminder
cp -v samples/rrule.rb bin/rrule
chmod +x bin/*
ruby vpim.gemspec
mv vpim*.gem ../releases/
pkg:
rm -rf $R/*
mkdir -p $R/lib
mkdir -p $R/samples
mkdir -p $R/test
cp COPYING README CHANGES setup.rb $R/
cp -vr lib/vpim $R/lib/
cp samples/README.mutt $R/samples
cp $(SAMPLES) $R/samples
cp samples/osx-wrappers.rb $R/samples
cp test/test_*.rb $R/test
# no docs: cp -r doc $R/
cd ../releases && tar -zcf $P.tgz $P
# vim:noexpandtab:tabstop=2:sw=2:
Jump to Line
Something went wrong with that request. Please try again.