From f3e8cc8d59c8fb7075a5f001ec12a2d460da6de3 Mon Sep 17 00:00:00 2001 From: Adam Shaw Date: Sun, 31 May 2009 04:49:51 +0000 Subject: [PATCH] --- Makefile | 54 +++++++------------ examples/basic.html | 4 +- examples/gcal.html | 6 +-- examples/json.html | 4 +- fullcalendar/fullcalendar.js | 2 +- {legacy => test/legacy}/examples/basic.html | 0 {legacy => test/legacy}/examples/gcal.html | 0 {legacy => test/legacy}/examples/json.html | 0 .../legacy}/examples/json_events.php | 0 {legacy => test/legacy}/jquery/jquery.js | 0 {legacy => test/legacy}/jquery/ui.core.js | 0 .../legacy}/jquery/ui.draggable.js | 0 version.txt | 2 +- 13 files changed, 28 insertions(+), 44 deletions(-) rename {legacy => test/legacy}/examples/basic.html (100%) rename {legacy => test/legacy}/examples/gcal.html (100%) rename {legacy => test/legacy}/examples/json.html (100%) rename {legacy => test/legacy}/examples/json_events.php (100%) rename {legacy => test/legacy}/jquery/jquery.js (100%) rename {legacy => test/legacy}/jquery/ui.core.js (100%) rename {legacy => test/legacy}/jquery/ui.draggable.js (100%) diff --git a/Makefile b/Makefile index 8b91b53..cbad1d7 100644 --- a/Makefile +++ b/Makefile @@ -5,45 +5,29 @@ FILES =\ examples\ changelog.txt -VER = `cat version.txt` -DATE = `svn info fullcalendar.js | grep Date: | sed 's/.*: //g'` -REV = `svn info fullcalendar.js | grep Rev: | sed 's/.*: //g'` - -hey: - @for f in fullcalendar/*.js; do echo $$f; done +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 zip: @mkdir -p build/F - @cp -rt build/F ${FILES} - #@rm -rf `find build/fullcalendar -type d -name .svn` - -q: - @for f in fullcalendar/*.js; do\ - echo `svn info $$f`;\ + @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;\ done - -yo: - - #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;\ - - - #@cd build/fullcalendar; zip -r fullcalendar-`cat ../../version.txt`.zip * - #@mv build/fullcalendar/fullcalendar-`cat version.txt`.zip dist - #@rm -rf build/fullcalendar - -something: - @cp -rt fullcalendar ${FILES} - @rm -rf `find fullcalendar -type d -name .svn` - - @sed -i "s/FullCalendar/& v${VER}/" fullcalendar/fullcalendar.js - @sed -i "s/Date:/& ${DATE}/" fullcalendar/fullcalendar.js - @sed -i "s/Revision:/& ${REV}/" fullcalendar/fullcalendar.js - - @mkdir -p dist - @zip -r dist/fullcalendar-${VER}.zip fullcalendar - @rm -rf fullcalendar + @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 clean: @rm -rf dist/* diff --git a/examples/basic.html b/examples/basic.html index f9f500b..0a4382b 100644 --- a/examples/basic.html +++ b/examples/basic.html @@ -16,11 +16,11 @@ } - + - + - - + + - +