aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitali64 <vitali64pmemail@protonmail.com>2021-12-23 19:34:57 +0100
committerVitali64 <vitali64pmemail@protonmail.com>2021-12-23 19:34:57 +0100
commita53e786b682437c68197d94479b2c1e0b422a824 (patch)
tree8fe945bb7cb2c0bc690041d03000125960081480
parent21270e6fd0890d3f2400d7112381187abd243568 (diff)
downloadseen-a53e786b682437c68197d94479b2c1e0b422a824.tar.gz
seen-a53e786b682437c68197d94479b2c1e0b422a824.zip
Don't echo the GPLv3 license, just 'cat LICENSE'
-rwxr-xr-xseen.sh22
1 files changed, 1 insertions, 21 deletions
diff --git a/seen.sh b/seen.sh
index 1683bc4..5addc90 100755
--- a/seen.sh
+++ b/seen.sh
@@ -1,7 +1,5 @@
#!/bin/sh
-
# Seen, a simple static blog generator
-#
# Copyright (C) 2021 Vitali64 <vitali64pmemail@protonmail.com>
# 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
@@ -16,7 +14,6 @@
usage() {
echo "Usage : ./seen [OPTIONS]"
- echo
echo "--help : Print this help message"
echo "--clear : Remove generated blog"
echo "--rm : Remove everything and start from scratch"
@@ -30,7 +27,6 @@ die() {
}
echo "Seen, a simple static blog generator"
-echo
if [ "$1" = "--clear" ]; then
echo "-> [$(date +%R)] Deleting generated blog ..."
@@ -49,18 +45,7 @@ elif [ "$1" = "--rss" ]; then
elif [ "$1" = "--license" ]; then
echo "Copyright (C) 2021 Vitali64 <vitali64pmemail@protonmail.com>"
echo
- echo "This program is free software: you can redistribute it and/or modify"
- echo "it under the terms of the GNU General Public License as published by"
- echo "the Free Software Foundation, either version 3 of the License, or"
- echo "(at your option) any later version."
- echo
- echo "This program is distributed in the hope that it will be useful,"
- echo "but WITHOUT ANY WARRANTY; without even the implied warranty of"
- echo "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the"
- echo "GNU General Public License for more details."
- echo
- echo "You should have received a copy of the GNU General Public License"
- echo "along with this program. If not, see <https://www.gnu.org/licenses/>."
+ cat "./LICENSE"
exit 0
elif [ "$1" = "" ]; then
echo "-> [$(date +%R)] No options specified, generating blog ..."
@@ -69,11 +54,6 @@ else
usage
exit 1
fi
-echo "Copyright (C) 2021 Vitali64 <vitali64pmemail@protonmail.com>"
-echo "This program comes with ABSOLUTELY NO WARRANTY."
-echo "This is free software, and you are welcome to modify it,"
-echo "use it where you see fit, and redistribute it"
-echo "under certain conditions; type './seen.sh --license' for details."
# Create the www/ folder if removed
mkdir -p "www" || die "Cannot create www/ directory: mkdir -p returns an error!"
# Erase www/index.html and insert the header