diff --git a/Makefile b/Makefile index 0399baf..bbdfceb 100644 --- a/Makefile +++ b/Makefile @@ -5,10 +5,16 @@ FILES =\ jquery\ examples +VER = `cat version.txt` +DATE = `svn info . | grep Date: | sed 's/.*: //g'` +REV = `svn info . | grep Rev: | sed 's/.*: //g'` + zip: @mkdir -p build/full_calendar @cp -rt build/full_calendar ${FILES} - @sed -i "s/Version:/& `cat version.txt`/" build/full_calendar/full_calendar.js + @sed -i "s/Version:/& ${VER}/" build/full_calendar/full_calendar.js + @sed -i "s/Date:/& ${DATE}/" build/full_calendar/full_calendar.js + @sed -i "s/Revision:/& ${REV}/" build/full_calendar/full_calendar.js @mkdir -p dist @cd build;\ zip -r ../dist/full_calendar_`cat ../version.txt`.zip * diff --git a/full_calendar.js b/full_calendar.js index 5e8c5ed..93990e8 100644 --- a/full_calendar.js +++ b/full_calendar.js @@ -1,5 +1,8 @@ /* + * * Version: + * Date: + * Revision: * */