fullcalendar/Makefile

26 lines
641 B
Makefile
Raw Normal View History

2009-04-26 06:43:27 +02:00
FILES =\
*.js\
*.css\
jquery\
examples
2009-04-26 06:58:07 +02:00
VER = `cat version.txt`
DATE = `svn info . | grep Date: | sed 's/.*: //g'`
REV = `svn info . | grep Rev: | sed 's/.*: //g'`
2009-04-26 06:43:27 +02:00
zip:
@mkdir -p build/full_calendar
@cp -rt build/full_calendar ${FILES}
2009-04-26 08:03:09 +02:00
@rm -rf `find build -type d -name .svn`
@sed -i "s/FullCalendar/& v${VER}/" build/full_calendar/full_calendar.js
2009-04-26 06:58:07 +02:00
@sed -i "s/Date:/& ${DATE}/" build/full_calendar/full_calendar.js
@sed -i "s/Revision:/& ${REV}/" build/full_calendar/full_calendar.js
2009-04-26 06:43:27 +02:00
@mkdir -p dist
@cd build;\
2009-04-26 08:03:09 +02:00
zip -r ../dist/full_calendar_`cat ../version.txt`.zip full_calendar
2009-04-26 06:43:27 +02:00
clean:
@rm -rf build/*
@rm -rf dist/*