From 65ed21e4850196a2e1b27254122e1e2df816e262 Mon Sep 17 00:00:00 2001 From: Matthijs van der Wild Date: Wed, 9 Jul 2025 15:06:11 -0400 Subject: Add Makefile Using the script is a bit simpler if it is added to a location in the user's PATH with execution permission set. The Makefile will, in addition, remove the file extension. After running make it is a simple matter of using `pilot` on the command line. --- Makefile | 11 +++++++++++ README.md | 18 +++++++++++++++--- 2 files changed, 26 insertions(+), 3 deletions(-) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..684c2f5 --- /dev/null +++ b/Makefile @@ -0,0 +1,11 @@ +DESTDIR ?= /usr +BINDIR ?= /bin + +.PHONY: install uninstall + +install: + install -v -d "$(DESTDIR)$(BINDIR)/" + install -m 0755 -v pilot.sh "$(DESTDIR)$(BINDIR)/pilot" + +uninstall: + rm -vrf "$(DESTDIR)$(BINDIR)/pilot" diff --git a/README.md b/README.md index da099dc..70cfd44 100644 --- a/README.md +++ b/README.md @@ -16,11 +16,23 @@ This script assumes the following: * `$CWL_SINGULARITY_CACHE` is set and the corresponding path contains (a link to) a singularity container `vlbi-cwl.sif`. If it isn't set a suitable container can be specified as detailed below. -## Execution +## Installation -The script can be run as follows: +The script can be installed to `/usr/bin` via ``` -sh pilot.sh [options] $BINDDIR +make install +``` +while uninstalling the script is as straightforward as running +``` +make uninstall +``` +A custom installation location can be specified by setting `DESTDIR`. + +## Usage + +Once installed the script can be run as follows: +``` +pilot [options] $BINDDIR ``` Options can be the following: -- cgit v1.2.3