From fbb2cbb52400906912335bb0fbae8043ea0e9fa9 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Wed, 25 Mar 2020 11:26:55 +0100 Subject: [PATCH] Large cleanup --- cpy_pst/LICENSE | 17 -------------- cpy_pst/Makefile | 9 ------- cpy_pst/README.md | 14 ----------- cpy_pst/cpy.sh | 60 ----------------------------------------------- cpy_pst/pst.sh | 56 ------------------------------------------- 5 files changed, 156 deletions(-) delete mode 100644 cpy_pst/LICENSE delete mode 100644 cpy_pst/Makefile delete mode 100644 cpy_pst/README.md delete mode 100755 cpy_pst/cpy.sh delete mode 100755 cpy_pst/pst.sh diff --git a/cpy_pst/LICENSE b/cpy_pst/LICENSE deleted file mode 100644 index 07b04b0..0000000 --- a/cpy_pst/LICENSE +++ /dev/null @@ -1,17 +0,0 @@ -COPYRIGHT (c) 2015 mmk2410 - -GNU GENERAL PUBLIC LICENSE - Version 3, 29 June 2007 - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . diff --git a/cpy_pst/Makefile b/cpy_pst/Makefile deleted file mode 100644 index 33a9d9c..0000000 --- a/cpy_pst/Makefile +++ /dev/null @@ -1,9 +0,0 @@ -all: - -install: - cp cpy.sh /usr/bin/cpy - cp pst.sh /usr/bin/pst - -uninstall: - rm /usr/bin/cpy - rm /usr/bin/pst diff --git a/cpy_pst/README.md b/cpy_pst/README.md deleted file mode 100644 index 8d0355f..0000000 --- a/cpy_pst/README.md +++ /dev/null @@ -1,14 +0,0 @@ -# cpy_pst - -A small but useful script for copying and pasting files and directories once or more often. - -**Install:** ``sudo make install`` - -**Usage:** - -``` -cpy filename # Copies a file / directory -pst filename # Pasts a file / directory -``` - -**Remove:** ``sudo make uninstall`` diff --git a/cpy_pst/cpy.sh b/cpy_pst/cpy.sh deleted file mode 100755 index 5b75a17..0000000 --- a/cpy_pst/cpy.sh +++ /dev/null @@ -1,60 +0,0 @@ -#!/bin/bash - -# This is a small script for copy pasting files and directories. -# -# Marcel Kapfer (mmk2410) -# -# 15 August 2015 -# -# GNU GPL v3 -# -# Version: 0.1 -> feel free to redistribute or fork it - -FILE=/tmp/cpypst - -function copy { - if [[ -d "$FILE" ]]; then - rm -rf $FILE - elif [[ -f "$FILE" ]]; then - rm $FILE - fi - if [[ -d "$1" ]]; then - cp -R $1 $FILE - elif [[ -f "$1" ]]; then - cp $1 $FILE - fi -} - -usage=$( -cat< -# -# 15 August 2015 -# -# GNU GPL v3 -> feel free to re-distribute of fork it -# -# Version: 0.1 - -FILE=/tmp/cpypst - -function paste { - if [[ -d "$FILE" ]]; then - cp -R "$FILE" "$1" - elif [[ -f "$FILE" ]]; then - cp $FILE $1 - fi -} - - -usage=$( -cat<