fullcalendar/Makefile

39 lines
1.1 KiB
Makefile
Raw Normal View History

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 22:56:02 +02: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 06:49:51 +02:00
min:
@java -jar build/yuicompressor-2.4.2.jar -o build/fullcalendar.min.js fullcalendar/fullcalendar.js
2009-04-26 06:58:07 +02:00
2009-04-26 06:43:27 +02:00
zip:
2009-05-31 22:56:02 +02:00
@mkdir -p build/fullcalendar-${VER}
@cp -rt build/fullcalendar-${VER} ${FILES}
2009-05-31 06:49:51 +02:00
@if [ -e build/fullcalendar.min.js ];\
2009-05-31 22:56:02 +02:00
then cp build/fullcalendar.min.js build/fullcalendar-${VER}/fullcalendar;\
else echo "\n!!! WARNING: fullcalendar.js not yet minified.\n";\
2009-05-31 06:49:51 +02:00
fi
2009-06-01 06:51:34 +02:00
@rm -rf `find build/fullcalendar-* -type d -name .svn`
2009-05-31 22:56:02 +02: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 06:51:34 +02:00
@mkdir -p dist
2009-05-31 22:56:02 +02:00
@mv build/fullcalendar-${VER}.zip dist
@rm -rf build/fullcalendar-${VER}
2009-05-31 06:49:51 +02:00
@rm -f build/fullcalendar.min.js
2009-04-26 06:43:27 +02:00
clean:
@rm -rf dist/*
2009-05-31 22:56:02 +02:00
@rm -rf build/fullcalendar-*
2009-05-31 07:01:24 +02:00
@rm -f build/*.js