fullcalendar/Makefile

39 lines
1.1 KiB
Makefile
Raw Normal View History

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