From 9413fe32dd311e848ed346a6bdc688e3658bd771 Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Wed, 4 Oct 2023 11:26:08 +0100 Subject: [PATCH] Add install script LICENSE --- LICENSE | 5 ----- README.md | 27 +++++++++++++++++++++++++++ install.pl | 33 ++++++++++++++++++++++++++++++--- 3 files changed, 57 insertions(+), 8 deletions(-) delete mode 100644 LICENSE create mode 100644 README.md diff --git a/LICENSE b/LICENSE deleted file mode 100644 index fea0740..0000000 --- a/LICENSE +++ /dev/null @@ -1,5 +0,0 @@ -Please see license details in each individual file. - -Some files are not authored by me - -If no license is provided in a file, assume: (c) Frederick Boniface, All Rights Reserved. \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..d970d44 --- /dev/null +++ b/README.md @@ -0,0 +1,27 @@ +# Personal Scripts Repository + +Welcome to my personal scripts repository! This repository contains a collection of useful scripts in various programming languages. Each script is self-contained, making it easy to install and use. Additionally, there's an `install.pl` script provided, which helps with installing and updating the scripts. + +## Installation and Updates + +To install and update the scripts from this repository, simply run the `install.pl` script: + +```bash +perl -S install.pl +``` + +This script will automatically check out the latest version of the scripts from the 'main' branch and install them to /usr/local/bin. It also handles updates by fetching the latest changes from the repository. + +## Usage + +Once the installation is complete, you can use any of the scripts in this repository by simply typing their names in your terminal. For example: + +``` +script-name +``` + +Replace script-name with the name of the script you want to run. + +## License + +Each script in this repository may have a different license. The license information for each script is contained within comments at the top of the respective script file. Please refer to the specific script's license for more details. \ No newline at end of file diff --git a/install.pl b/install.pl index 544ed5c..7e84dda 100644 --- a/install.pl +++ b/install.pl @@ -1,7 +1,34 @@ -#!/usr/bin/perl +#!/usr/bin/env perl + +# Script: install.pl +# Description: This script installs my personal scripts from the git repo +# found at $repo_url + +# NOTE: THE UNLICENSE BELOW APPLIES TO THIS SCRIPT ONLY, NOT THE SOFTWARE WHICH +# IS INSTALLED BY EXECUTING IT. + +# This is free and unencumbered software released into the public domain. + +# Anyone is free to copy, modify, publish, use, compile, sell, or distribute this +# software, either in source code form or as a compiled binary, for any purpose, +# commercial or non-commercial, and by any means. + +# In jurisdictions that recognize copyright laws, the author or authors of this +# software dedicate any and all copyright interest in the software to the public +# domain. We make this dedication for the benefit of the public at large and to +# the detriment of our heirs and successors. We intend this dedication to be an +# overt act of relinquishment in perpetuity of all present and future rights to +# this software under copyright law. + +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +# ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +#For more information, please refer to -# This script installs my personal scripts which can be found at -# $repo_url. use strict; use warnings;