From e92525b9e4a21e52bea66c4c67644a06a84b7e34 Mon Sep 17 00:00:00 2001 From: Adam Shaw Date: Sun, 31 May 2009 03:25:12 +0000 Subject: [PATCH] --- Makefile | 28 +++++++++++++++++-- docs/index.txt | 4 +-- .../fullcalendar.css | 0 .../fullcalendar.js | 7 +++-- gcal.js => fullcalendar/gcal.js | 0 5 files changed, 31 insertions(+), 8 deletions(-) rename fullcalendar.css => fullcalendar/fullcalendar.css (100%) rename fullcalendar.js => fullcalendar/fullcalendar.js (99%) rename gcal.js => fullcalendar/gcal.js (100%) diff --git a/Makefile b/Makefile index 825ed62..8b91b53 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,6 @@ FILES =\ - *.js\ - *.css\ + fullcalendar\ jquery\ examples\ changelog.txt @@ -9,9 +8,32 @@ FILES =\ 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 zip: - @mkdir -p fullcalendar + @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`;\ + 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` diff --git a/docs/index.txt b/docs/index.txt index 8edf66b..ea99077 100644 --- a/docs/index.txt +++ b/docs/index.txt @@ -363,12 +363,12 @@ when creating a custom event source: Format a javascript Date object into a string. ``format`` may contain one or more of the following commands (similar to PHP's date function): + * **Y** - Examples: 1999 or 2003 + * **y** - Examples: 99 or 03 * **F** - January through December * **M** - Jan through Dec * **n** - 1 through 12 (month) * **m** - 01 through 12 (month, leading zeros) - * **Y** - Examples: 1999 or 2003 - * **y** - Examples: 99 or 03 * **a** - am or pm * **A** - AM or PM * **x** - a or p diff --git a/fullcalendar.css b/fullcalendar/fullcalendar.css similarity index 100% rename from fullcalendar.css rename to fullcalendar/fullcalendar.css diff --git a/fullcalendar.js b/fullcalendar/fullcalendar.js similarity index 99% rename from fullcalendar.js rename to fullcalendar/fullcalendar.js index 1411dad..4f6331c 100644 --- a/fullcalendar.js +++ b/fullcalendar/fullcalendar.js @@ -20,7 +20,7 @@ // - // Calls methods of a pre-existing instance + // Calls methods on a pre-existing instance // if (typeof options == 'string') { @@ -30,8 +30,9 @@ var r = $.data(this, 'fullCalendar')[options].apply(this, args); if (typeof res == 'undefined') res = r; }); - if (typeof res != 'undefined') + if (typeof res != 'undefined') { return res; + } return this; } @@ -300,7 +301,7 @@ // - // Build the TABLE cells for the current month. (calls event fetch+render code) + // Build the TABLE cells for the current month. (calls event fetching & rendering code) // var thead, tbody, glass; diff --git a/gcal.js b/fullcalendar/gcal.js similarity index 100% rename from gcal.js rename to fullcalendar/gcal.js