aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--LICENSE (renamed from LICENSE.txt)0
-rw-r--r--Makefile38
-rw-r--r--VERSION1
-rw-r--r--docs/ssync-fetch.12
-rw-r--r--docs/ssync-index.12
-rw-r--r--docs/ssync-queue.12
-rw-r--r--docs/ssync.12
-rw-r--r--docs/ssync.52
8 files changed, 44 insertions, 5 deletions
diff --git a/LICENSE.txt b/LICENSE
index fae5529..fae5529 100644
--- a/LICENSE.txt
+++ b/LICENSE
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..a5f3be7
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,38 @@
+DESTDIR?=/
+PREFIX=/usr/local
+
+.PHONY: build install
+
+clean:
+ rm -rf build
+
+setup: clean
+ mkdir -p build
+
+release:
+ cp docs/*.[1-9] build/
+ sed -i "s/[{]RELEASE[}]/$(cat VERSION)/1" build/*.*
+
+gzip:
+ gzip build/*.1
+ gzip build/*.5
+
+build: setup release gzip
+
+install: build
+ @install -Dm644 build/ssync.1.gz \
+ ${DESTDIR}${PREFIX}/share/man/man1/ssync.1.gz
+ @install -Dm644 build/ssync-index.1.gz \
+ ${DESTDIR}${PREFIX}/share/man/man1/ssync-index.1.gz
+ @install -Dm644 build/ssync-queue.1.gz \
+ ${DESTDIR}${PREFIX}/share/man/man1/ssync-queue.1.gz
+ @install -Dm644 build/ssync-fetch.1.gz \
+ ${DESTDIR}${PREFIX}/share/man/man1/ssync-fetch.1.gz
+ @install -Dm644 build/ssync.5.gz \
+ ${DESTDIR}${PREFIX}/share/man/man5/ssync.5.gz
+ @install -Dm755 ssync ${DESTDIR}${PREFIX}/bin/ssync
+ @install -Dm755 ssync-index ${DESTDIR}${PREFIX}/bin/ssync-index
+ @install -Dm755 ssync-queue ${DESTDIR}${PREFIX}/bin/ssync-queue
+ @install -Dm755 ssync-fetch ${DESTDIR}${PREFIX}/bin/ssync-fetch
+ @install -Dm644 LICENSE ${DESTDIR}${PREFIX}/share/licenses/ssync/LICENSE
+
diff --git a/VERSION b/VERSION
new file mode 100644
index 0000000..58697f7
--- /dev/null
+++ b/VERSION
@@ -0,0 +1 @@
+"December 2025" "2.0.0" \ No newline at end of file
diff --git a/docs/ssync-fetch.1 b/docs/ssync-fetch.1
index c7cc7ff..643300a 100644
--- a/docs/ssync-fetch.1
+++ b/docs/ssync-fetch.1
@@ -1,4 +1,4 @@
-.TH ssync-fetch 1 "December 2025" "2.0.0"
+.TH ssync-fetch 1 {RELEASE}
.SH NAME
ssync-fetch \- fetch files from queue and write them to a destination.
.SH SYNOPSIS
diff --git a/docs/ssync-index.1 b/docs/ssync-index.1
index cb53fc1..384ba81 100644
--- a/docs/ssync-index.1
+++ b/docs/ssync-index.1
@@ -1,4 +1,4 @@
-.TH ssync-index 1 "December 2025" "2.0.0"
+.TH ssync-index 1 {RELEASE}
.SH NAME
ssync-index \- index files locally or remotely
.SH SYNOPSIS
diff --git a/docs/ssync-queue.1 b/docs/ssync-queue.1
index 1af4275..c542ea0 100644
--- a/docs/ssync-queue.1
+++ b/docs/ssync-queue.1
@@ -1,4 +1,4 @@
-.TH ssync-queue 1 "December 2025" "2.0.0"
+.TH ssync-queue 1 {RELEASE}
.SH NAME
ssync-queue \- generate ssync queue from local and remote indicies
.SH SYNOPSIS
diff --git a/docs/ssync.1 b/docs/ssync.1
index ab3d82d..e4e9c28 100644
--- a/docs/ssync.1
+++ b/docs/ssync.1
@@ -1,4 +1,4 @@
-.TH ssync 1 "December 2025" "2.0.0"
+.TH ssync 1 {RELEASE}
.SH NAME
ssync \- simple suite of syncing scripts
.SH SYNOPSIS
diff --git a/docs/ssync.5 b/docs/ssync.5
index f12319b..fee2fe6 100644
--- a/docs/ssync.5
+++ b/docs/ssync.5
@@ -1,4 +1,4 @@
-.TH ssync 5
+.TH ssync 5 {RELEASE}
.SH NAME
ssync - configuration file
.SH DESCRIPTION