From 0f63fd77dd3753054aa011bd4b977666903705e1 Mon Sep 17 00:00:00 2001 From: Paul Wilde Date: Tue, 25 May 2021 22:30:29 +0100 Subject: [PATCH] added install.sh --- README.md | 8 ++++---- install.sh | 13 +++++++++++++ 2 files changed, 17 insertions(+), 4 deletions(-) create mode 100755 install.sh diff --git a/README.md b/README.md index 0240e30..f08c69b 100644 --- a/README.md +++ b/README.md @@ -19,14 +19,14 @@ much easier task when organising podcasts. Very simple install: ```git clone this repo cd podcatch -go build -chmod +x ./podcatch -./podcatch +chmod +x install.sh +./install.sh +podcatch ``` ### Setup Settings and Podcasts lists are automatically created in the `~/.podcatch/` directory. -These files are in the TOML format, and the "podcasts.toml" file uses a `map[string]Podcast` interface. +These files are in the TOML format, and the `podcasts.toml` file uses a `map[string]Podcast` interface. The automatically created files contain some example podcasts from which you should be able to understand the required layout. diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..296c833 --- /dev/null +++ b/install.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env bash +BASEDIR=$(dirname "$0") +echo "Base directory is : $BASEDIR" +echo "Building..." +go build +echo "Built." +echo "Making executable..." +chmod +x $BASEDIR/podcatch +echo "Made." +echo "Copying to /usr/bin" +sudo cp $BASEDIR/podcatch /usr/bin/podcatch +echo "Copied." +echo "You should now be able to run podcatch as just 'podcatch'"