X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=Makefile;h=283e02e07c53122f5e242203083e10ecf023a94a;hb=956cd5c10a027f75283d91545a5d5feeed1874ef;hp=d7ee751a66bd7673249c26ae8b00131f82c19f53;hpb=aa0909f4d3c47cdc98d9eac50602649394c6bbe4;p=platal.git diff --git a/Makefile b/Makefile index d7ee751..283e02e 100644 --- a/Makefile +++ b/Makefile @@ -73,7 +73,10 @@ htdocs/.htaccess: htdocs/.htaccess.in Makefile ## ## static content ## -static: htdocs/javascript@VERSION +static: htdocs/javascript/core.js htdocs/javascript@VERSION + +htdocs/javascript/core.js: + cd htdocs/javascript/ && ln -s ../../core/htdocs/javascript/core.js %@VERSION: % Makefile ChangeLog cd $< && rm -f $(VERSION) && ln -sf . $(VERSION) @@ -119,10 +122,10 @@ wiki/pub/skins/empty: get-wiki: @if ! test -d wiki; then \ - wget http://www.pmwiki.org/pub/pmwiki/pmwiki-latest.tgz; \ - tar -xzvf pmwiki-latest.tgz; \ - rm pmwiki-latest.tgz; \ - mv pmwiki-* wiki; \ + wget http://www.pmwiki.org/pub/pmwiki/pmwiki-latest.tgz; \ + tar -xzvf pmwiki-latest.tgz; \ + rm pmwiki-latest.tgz; \ + mv pmwiki-* wiki; \ fi ## @@ -132,14 +135,17 @@ get-wiki: openid: get-openid spool/openid/store # There is no obvious way to automatically use the latest version -OPENID_VERSION = 2.1.3 +OPENID_VERSION = 2.2.2 +OPENID_COMMIT = 782224d get-openid: @if ! test -d include/Auth; then \ - wget http://openidenabled.com/files/php-openid/packages/php-openid-$(OPENID_VERSION).tar.bz2; \ - tar -xjf php-openid-$(OPENID_VERSION).tar.bz2; \ - mv php-openid-$(OPENID_VERSION)/Auth include/; \ - rm php-openid-$(OPENID_VERSION).tar.bz2; \ - rm -r php-openid-$(OPENID_VERSION); \ + wget --no-check-certificate \ + https://github.com/openid/php-openid/tarball/$(OPENID_VERSION) \ + -O php-openid-$(OPENID_VERSION).tar.gz; \ + tar -xzf php-openid-$(OPENID_VERSION).tar.gz; \ + mv openid-php-openid-$(OPENID_COMMIT)/Auth include/; \ + rm php-openid-$(OPENID_VERSION).tar.gz; \ + rm -r openid-php-openid-$(OPENID_COMMIT); \ fi spool/openid/store: @@ -178,7 +184,7 @@ JQUERY_PLUGINS=color form JQUERY_PLUGINS_PATHES=$(addprefix htdocs/javascript/jquery.,$(addsuffix .js,$(JQUERY_PLUGINS))) JQUERY_UI_VERSION=1.8.7 -JQUERY_UI=core tabs widget +JQUERY_UI=core widget tabs datepicker JQUERY_UI_PATHES=$(addprefix htdocs/javascript/jquery.ui.,$(addsuffix .js,$(JQUERY_UI))) JQUERY_TMPL_VERSION=vBeta1.0.0 @@ -190,7 +196,13 @@ JSTREE_PATH=htdocs/javascript/jquery.jstree.js # TODO: jquery.autocomplete.js should rather be downloaded from an official source. The issue # is that the version we use is not available anymore on the Internet, and the latest version # we could use is not backward compatible with our current code. -jquery: htdocs/javascript/jquery.js $(JQUERY_PLUGINS_PATHES) $(JQUERY_UI_PATHES) $(JQUERY_TMPL_PATH) $(JSTREE_PATH) +jquery: htdocs/javascript/jquery.xorg.js htdocs/javascript/jquery.ui.xorg.js $(JSTREE_PATH) + +htdocs/javascript/jquery.xorg.js: htdocs/javascript/jquery.js $(JQUERY_PLUGINS_PATHES) $(JQUERY_TMPL_PATH) htdocs/javascript/jquery.autocomplete.js + cat $^ > $@ + +htdocs/javascript/jquery.ui.xorg.js: $(JQUERY_UI_PATHES) htdocs/javascript/jquery.ui.datepicker-fr.js + cat $^ > $@ htdocs/javascript/jquery-$(JQUERY_VERSION).min.js: DOWNLOAD_SRC = http://jquery.com/src/$(@F) htdocs/javascript/jquery-$(JQUERY_VERSION).min.js: @@ -209,7 +221,19 @@ htdocs/javascript/jquery.ui-$(JQUERY_UI_VERSION).%.js: DOWNLOAD_SRC = http://jqu htdocs/javascript/jquery.ui-$(JQUERY_UI_VERSION).%.js: @$(download) -$(JQUERY_UI_PATHES): htdocs/javascript/jquery.ui.%.js: htdocs/javascript/jquery.ui-$(JQUERY_UI_VERSION).%.js +htdocs/javascript/jquery.ui-$(JQUERY_UI_VERSION).datepicker-fr.js: DOWNLOAD_SRC = http://jquery-ui.googlecode.com/svn/tags/$(JQUERY_UI_VERSION)/ui/minified/i18n/jquery.ui.datepicker-fr.min.js +htdocs/javascript/jquery.ui-$(JQUERY_UI_VERSION).datepicker-fr.js: + @$(download) + +$(JQUERY_UI_PATHES) htdocs/javascript/jquery.ui.datepicker-fr.js: htdocs/javascript/jquery.ui.%.js: htdocs/javascript/jquery.ui-$(JQUERY_UI_VERSION).%.js + ln -snf $(