2009-04-26 06:43:27 +02:00
|
|
|
|
|
|
|
FILES =\
|
2009-05-31 05:25:12 +02:00
|
|
|
fullcalendar\
|
2009-04-26 06:43:27 +02:00
|
|
|
jquery\
|
2009-05-11 04:58:02 +02:00
|
|
|
examples\
|
|
|
|
changelog.txt
|
2009-04-26 06:43:27 +02:00
|
|
|
|
2009-05-31 06:49:51 +02:00
|
|
|
min:
|
|
|
|
@java -jar build/yuicompressor-2.4.2.jar -o build/fullcalendar.min.js fullcalendar/fullcalendar.js
|
|
|
|
sed -i "s/* FullCalendar/& v`cat version.txt`/" build/fullcalendar.min.js
|
|
|
|
sed -i "s/* Date:/& `svn info fullcalendar/fullcalendar.js | grep Date: | sed 's/.*: //g'`/" build/fullcalendar.min.js
|
|
|
|
sed -i "s/* Revision:/& `svn info fullcalendar/fullcalendar.js | grep Rev: | sed 's/.*: //g'`/" build/fullcalendar.min.js
|
2009-04-26 06:58:07 +02:00
|
|
|
|
2009-04-26 06:43:27 +02:00
|
|
|
zip:
|
2009-05-31 05:25:12 +02:00
|
|
|
@mkdir -p build/F
|
2009-05-31 06:49:51 +02:00
|
|
|
@cp -rt build/F ${FILES} .svn
|
|
|
|
@for f in build/F/fullcalendar/*.js; do\
|
|
|
|
sed -i "s/* FullCalendar/& v`cat version.txt`/" $$f;\
|
|
|
|
sed -i "s/* Date:/& `svn info $$f | grep Date: | sed 's/.*: //g'`/" $$f;\
|
|
|
|
sed -i "s/* Revision:/& `svn info $$f | grep Rev: | sed 's/.*: //g'`/" $$f;\
|
2009-05-31 05:25:12 +02:00
|
|
|
done
|
2009-05-31 06:49:51 +02:00
|
|
|
@rm -rf `find build/F -type d -name .svn`
|
|
|
|
@if [ -e build/fullcalendar.min.js ];\
|
|
|
|
then cp build/fullcalendar.min.js build/F/fullcalendar;\
|
|
|
|
else echo "WARNING: fullcalendar.js not yet minified.";\
|
|
|
|
fi
|
|
|
|
@cd build/F; zip -r fullcalendar-`cat ../../version.txt`.zip *
|
|
|
|
@mv build/F/fullcalendar-*.zip dist
|
|
|
|
@rm -rf build/F
|
|
|
|
@rm -f build/fullcalendar.min.js
|
2009-04-26 06:43:27 +02:00
|
|
|
|
|
|
|
clean:
|
|
|
|
@rm -rf dist/*
|
2009-05-31 07:01:24 +02:00
|
|
|
@rm -f build/*.js
|