extract latest git commit ID from github, MKWS-420
[mkws-moved-to-github.git] / src / Makefile
index 319403a..7f9b11b 100644 (file)
@@ -12,7 +12,7 @@ HANDLEBARS_URL = http://builds.handlebarsjs.com.s3.amazonaws.com/${HANDLEBARS_FI
 JQUERY_URL = http://code.jquery.com/${JQUERY_FILE}
 JQUERY_JSON_URL = https://jquery-json.googlecode.com/files/${JQUERY_JSON_FILE}
 JSNLOG_URL = https://raw.githubusercontent.com/mperdeck/jsnlog.js/2.7.5/${JSNLOG_FILE}
-PP2_URL = http://git.indexdata.com/?p=pazpar2.git;a=blob_plain;f=js/${PP2_FILE};hb=HEAD
+PP2_URL = https://raw.githubusercontent.com/indexdata/pazpar2/master/js/pz2.js
 
 VERSION = $(shell tr -d '\012' < VERSION)
 HANDLEBARS = ../test/node_modules/.bin/handlebars
@@ -50,7 +50,7 @@ $(DEST)/mkws-complete.js: Makefile $(INSTALLED_DOWNLOADABLE) $(DEST)/mkws.js
          echo "   Licence: LGPL, http://www.indexdata.com/licences/lgpl"; \
          echo "   created at: $$(date)"; \
          echo "   MKWS GIT id: $$(git show | head -n 1 | perl -npe 's,\S+\s+,,')"; \
-         echo "   pz2.js GIT id: $$(curl -sSf 'http://git.indexdata.com/?p=pazpar2.git;a=rss' | egrep '<guid' | head -1 | perl -ne 'print "$$1\n" if m,.*=([0-9a-f]+)</guid>,')"; \
+         echo "   pz2.js GIT id: $$(curl -sSf 'https://github.com/indexdata/pazpar2' | egrep '"commit-tease-sha"' | perl -ne 'print "$$1\n" if m,href=".*/([0-9a-f]+)",')"; \
          echo "*/"; \
          cat $(DEST)/${JQUERY_FILE}; \
          cat $(DEST)/${JQUERY_JSON_FILE}; \