summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouie Shprung <lshprung@scu.edu>2023-01-01 15:04:13 -0800
committerLouie Shprung <lshprung@scu.edu>2023-01-01 15:04:13 -0800
commit857c316881e6fede7dfe12daf2eecec539e0179c (patch)
treefa2d1911769aaad3f8888183a2012f1a8374bfb5
parent4ba9788e0770d45882d257cd341a81c342c8873b (diff)
Allow user to specify version
-rw-r--r--Makefile5
-rw-r--r--README2
2 files changed, 7 insertions, 0 deletions
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