Large cleanup

This commit is contained in:
Marcel Kapfer 2020-03-25 11:26:55 +01:00
parent 5484bd0592
commit fbb2cbb524
5 changed files with 0 additions and 156 deletions

View file

@ -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 <http://www.gnu.org/licenses/>.

View file

@ -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

View file

@ -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``

View file

@ -1,60 +0,0 @@
#!/bin/bash
# This is a small script for copy pasting files and directories.
#
# Marcel Kapfer (mmk2410) <opensource@mmk2410.org>
#
# 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<<EOF
COPY AND PASTE
for the terminal
Usage: cpy args
-h | --help Prints this help text
mmk2410
marcel-kapfer.de
EOF
)
if [[ -z "$1" ]]; then
echo
echo "$usage"
echo
exit
elif [[ -z "$2" ]]; then
copy $1
else
until [[ $1 == -- ]]; do
case $1 in
-h | --help )
echo
echo "$usage"
echo
exit
;;
esac
done
fi

View file

@ -1,56 +0,0 @@
#!/bin/bash
# A small script for copy pasting files and directories.
#
# Marcel Kapfer (mmk2410) <opensource@mmk2410.org>
#
# 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<<EOF
COPY AND PASTE
for the terminal
Usage: pst filename
-h | --help Prints this help text
mmk2410
marcel-kapfer.de
EOF
)
if [[ -z "$1" ]]; then
echo
echo "$usage"
echo
exit
elif [[ -z "$2" ]]; then
paste $1
else
until [[ $1 == -- ]]; do
case $1 in
-h | --help )
echo
echo "$usage"
echo
exit
;;
esac
done
fi