From 857c316881e6fede7dfe12daf2eecec539e0179c Mon Sep 17 00:00:00 2001 From: Louie Shprung Date: Sun, 1 Jan 2023 15:04:13 -0800 Subject: Allow user to specify version --- Makefile | 5 +++++ README | 2 ++ 2 files changed, 7 insertions(+) diff --git a/Makefile b/Makefile index 929ca2e..4285a82 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,12 @@ INDEX_FILE = $(RESOURCES_DIR)/docSet.dsidx #ICON_FILE = $(DOCSET_DIR)/icon.png ARCHIVE_FILE = $(DOCSET_NAME).tgz +ifdef VERSION +MANUAL_URL = https://invisible-island.net/archives/ncurses/ncurses-$(VERSION).tar.gz +else MANUAL_URL = https://invisible-island.net/archives/ncurses/ncurses.tar.gz +endif + MANUAL_ARCHIVE = tmp/ncurses.tar.gz MANUAL_SRC = tmp/ncurses-* MANUAL_PATH = ncurses-*/doc/html diff --git a/README b/README index 4f6f2c1..69c98be 100644 --- a/README +++ b/README @@ -7,6 +7,8 @@ To generate a docset from the latest edition of ncurses, simply execute `make` from the same directory as this README file. The latest edition will be downloaded from www.invisible-island.net and packaged appropriately. +A specific version can also be downloaded and packaged by running `make VERSION=...`. + Requirements: - any POSIX-compliant shell -- cgit