This commit is contained in:
Adam Shaw 2009-04-26 04:58:07 +00:00
parent b676a330d9
commit e292635de5
2 changed files with 10 additions and 1 deletions

View file

@ -5,10 +5,16 @@ FILES =\
jquery\ jquery\
examples examples
VER = `cat version.txt`
DATE = `svn info . | grep Date: | sed 's/.*: //g'`
REV = `svn info . | grep Rev: | sed 's/.*: //g'`
zip: zip:
@mkdir -p build/full_calendar @mkdir -p build/full_calendar
@cp -rt build/full_calendar ${FILES} @cp -rt build/full_calendar ${FILES}
@sed -i "s/Version:/& `cat version.txt`/" build/full_calendar/full_calendar.js @sed -i "s/Version:/& ${VER}/" build/full_calendar/full_calendar.js
@sed -i "s/Date:/& ${DATE}/" build/full_calendar/full_calendar.js
@sed -i "s/Revision:/& ${REV}/" build/full_calendar/full_calendar.js
@mkdir -p dist @mkdir -p dist
@cd build;\ @cd build;\
zip -r ../dist/full_calendar_`cat ../version.txt`.zip * zip -r ../dist/full_calendar_`cat ../version.txt`.zip *

View file

@ -1,5 +1,8 @@
/* /*
*
* Version: * Version:
* Date:
* Revision:
* *
*/ */