From 9e143acfdfc9e69997d46c71cc52a0947d572a2c Mon Sep 17 00:00:00 2001 From: Steph Enders Date: Sat, 13 Dec 2025 23:24:57 -0500 Subject: 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 --- LICENSE | 5 +++++ LICENSE.txt | 5 ----- Makefile | 38 ++++++++++++++++++++++++++++++++++++++ VERSION | 1 + docs/ssync-fetch.1 | 2 +- docs/ssync-index.1 | 2 +- docs/ssync-queue.1 | 2 +- docs/ssync.1 | 2 +- docs/ssync.5 | 2 +- 9 files changed, 49 insertions(+), 10 deletions(-) create mode 100644 LICENSE delete mode 100644 LICENSE.txt create mode 100644 Makefile create mode 100644 VERSION diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..fae5529 --- /dev/null +++ b/LICENSE @@ -0,0 +1,5 @@ +Copyright (c) 2025 Steph Enders + +Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/LICENSE.txt b/LICENSE.txt deleted file mode 100644 index fae5529..0000000 --- a/LICENSE.txt +++ /dev/null @@ -1,5 +0,0 @@ -Copyright (c) 2025 Steph Enders - -Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 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 -- cgit v1.2.3-54-g00ecf