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 06:58:07 +02:00
|
|
|
@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
|
2009-04-26 06:43:27 +02:00
|
|
|
@mkdir -p dist
|
|
|
|
@cd build;\
|
|
|
|
zip -r ../dist/full_calendar_`cat ../version.txt`.zip *
|
|
|
|
|
|
|
|
clean:
|
|
|
|
@rm -rf build/*
|
|
|
|
@rm -rf dist/*
|