From a04e969da928eae77eddacdcfffa698a30b7550a Mon Sep 17 00:00:00 2001 From: Alejandro Gallo Date: Fri, 16 Nov 2018 15:19:29 +0100 Subject: [PATCH] Update update link --- README.md | 2 +- src/main.m4 | 5 ++++- src/update.m4 | 17 ----------------- 3 files changed, 5 insertions(+), 19 deletions(-) delete mode 100644 src/update.m4 diff --git a/README.md b/README.md index 5a50a98..487dd18 100644 --- a/README.md +++ b/README.md @@ -134,7 +134,7 @@ variables for the project, like the verbosity `QUIET=1` and many more. * `SPELL_LANG`(`en`): Language for the spelling program * `CHECK_SPELL`(`empty`): Wether or not spelling should be checked * `TEX_LINTER`(`chktex`): For checking tex syntax - * `MAKEFILE_UPDATE_URL`(`https://raw.githubusercontent.com/alejandrogallo/latex-makefile/master/dist/Makefile`): + * `MAKEFILE_UPDATE_URL`(`see`): * `CTAGS_OPTIONS`(`--language-force=latex -R *`): Options for ctags command diff --git a/src/main.m4 b/src/main.m4 index f96ff79..3161540 100644 --- a/src/main.m4 +++ b/src/main.m4 @@ -117,7 +117,10 @@ include_once(watch.m4) define( _MAKEFILE_UPDATE_URL, - https://raw.githubusercontent.com/alejandrogallo/latex-makefile/master/dist/Makefile +$(shell \ +curl https://api.github.com/repos/alejandrogallo/latex-makefile/releases/latest | \ +sed -n 's/.*browser_download_url":.*"\(.*\)"/\1/p' \ +) )dnl include_once(common-makefile/src/update.m4) diff --git a/src/update.m4 b/src/update.m4 deleted file mode 100644 index b84eece..0000000 --- a/src/update.m4 +++ /dev/null @@ -1,17 +0,0 @@ -include_once(common-makefile/src/log.m4)dnl -include_once(common-makefile/src/shell-utils.m4)dnl -dnl -# =============================== -# Update the makefile from source -# =============================== -# -# You can always get the last `latex-makefile` version using this target. -# You may override the `GH_REPO_FILE` to any path where you save your own -# personal makefile -# -update: ## Update the makefile from the repository - $(ARROW) "Getting makefile from $(GH_REPO_FILE)" - $(DBG_FLAG)wget $(GH_REPO_FILE) -O Makefile -GH_REPO_FILE ?= https://raw.githubusercontent.com/alejandrogallo/latex-makefile/master/dist/Makefile - -dnl vim:ft=make:noexpandtab: