aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--Makefile14
-rw-r--r--watch-git-tags.113
-rw-r--r--[-rwxr-xr-x]watch-git-tags.sh (renamed from watch-git-tags)0
4 files changed, 26 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..02a5345
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+watch-git-tags
diff --git a/Makefile b/Makefile
index 90bfa3b..acf1ab8 100644
--- a/Makefile
+++ b/Makefile
@@ -2,8 +2,18 @@
.SUFFIXES:
.PHONY: all install clean
PREFIX = /usr/local
-all:
-install:
+ALL = watch-git-tags
+all: $(ALL)
+watch-git-tags: watch-git-tags.sh
+ command -pv sh | sed 's_^_#!_' > $@
+ cat watch-git-tags.sh >> $@
+ chmod +x ./$@
+install: install-bin install-man
+install-bin:
mkdir -p -- $(PREFIX)/bin
cp -- watch-git-tags $(PREFIX)/bin
+install-man:
+ mkdir -p -- $(PREFIX)/share/man/man1
+ cp -- watch-git-tags.1 $(PREFIX)/share/man/man1
clean:
+ rm -f -- $(ALL)
diff --git a/watch-git-tags.1 b/watch-git-tags.1
new file mode 100644
index 0000000..70c9dc4
--- /dev/null
+++ b/watch-git-tags.1
@@ -0,0 +1,13 @@
+.TH WATCH-GIT-TAGS 1 "November 2018" "Manual page for watch-git-tags"
+.SH NAME
+.B watch-git-tags
+\- list and fetch new remote tags
+.SH SYNOPSIS
+.B watch-git-tags
+[REPO...]
+.SH DESCRIPTION
+List new remote tags for each of the named Git repositories, defaulting to the
+current directory, and then fetch them. Fetches in parallel over the repository
+list.
+.SH AUTHOR
+Tom Ryder <tom@sanctum.geek.nz>
diff --git a/watch-git-tags b/watch-git-tags.sh
index b9fdce8..b9fdce8 100755..100644
--- a/watch-git-tags
+++ b/watch-git-tags.sh