diff options
| author | Steph Enders <steph@senders.io> | 2025-12-13 23:24:57 -0500 |
|---|---|---|
| committer | Steph Enders <steph@senders.io> | 2025-12-13 23:24:57 -0500 |
| commit | 9e143acfdfc9e69997d46c71cc52a0947d572a2c (patch) | |
| tree | 40dd96d5dba3310a139a2eb1638ef37f27831bbe | |
| parent | 599a9a05228a2c61055b52ba08288cfc7421c2af (diff) | |
Create install process via make
Running `sudo make install` will install to /usr/local
installing all of the scripts as well as the documentation, setting
the release version for everything as well
| -rw-r--r-- | LICENSE (renamed from LICENSE.txt) | 0 | ||||
| -rw-r--r-- | Makefile | 38 | ||||
| -rw-r--r-- | VERSION | 1 | ||||
| -rw-r--r-- | docs/ssync-fetch.1 | 2 | ||||
| -rw-r--r-- | docs/ssync-index.1 | 2 | ||||
| -rw-r--r-- | docs/ssync-queue.1 | 2 | ||||
| -rw-r--r-- | docs/ssync.1 | 2 | ||||
| -rw-r--r-- | docs/ssync.5 | 2 |
8 files changed, 44 insertions, 5 deletions
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 + @@ -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 |