#15 Add `vaporget` Logo

Open
matteosavatteri wants to merge 6 commits from matteozeccolimarazzini/logo into matteozeccolimarazzini/master
3 changed files with 55 additions and 1 deletions
  1. 10 0
      LOGO.txt
  2. 12 0
      README.md
  3. 33 1
      vaporget

+ 10 - 0
LOGO.txt

@@ -0,0 +1,10 @@
+Vaporget Logo by Matteo Savatteri and Matteo Zeccoli Marazzini.
+
+This work is licensed under the Creative Commons Attribution 4.0 International License.
+To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0/.
+   _______________
+  /-------------/|
+ |   _      _   ||
+ |  (_) VG (_)  ||
+ |______________||
+ |==============|/

+ 12 - 0
README.md

@@ -1,5 +1,14 @@
 # `vaporget`
 
+```
+   _______________
+  /-------------/|
+ |   _      _   ||
+ |  (_) VG (_)  ||
+ |______________||
+ |==============|/
+```
+
 `vaporget` allows to easily retrieve and listen to `v a p o r w a v e` music stored in the Vaporwave Library Project (specifically, in the clone at https://vaporwave.ivan.moe/, thanks to Ivan Moe).
 
 ## Required software
@@ -31,3 +40,6 @@ If the program is called with `-d`, all the songs by the selected artists will b
 If a combination of `-p` and `-d` is used, only the operation corresponding to the last option written will be executed.
 To display the script version, use `-V`.
 To display a help message, use `-h`.
+
+
+[![GPLv3_logo](https://www.gnu.org/graphics/gplv3-or-later.png)](https://www.gnu.org/licenses/gpl-3.0.html)[![CC-by-4.0_logo](https://i.creativecommons.org/l/by/4.0/88x31.png)](http://creativecommons.org/licenses/by/4.0/)

+ 33 - 1
vaporget

@@ -38,6 +38,28 @@ Exit Status:
   0	if OK,
   1	some errors occurred."
 
+LOGO_MONOCHROME="   _______________
+  /-------------/|
+ |   _      _   ||
+ |  (_) VG (_)  ||
+ |______________||
+ |==============|/"
+
+LOGO_8_COLORS="\
+\033[35;44m   _______________ \033[0m
+\033[35;44m  /-------------/| \033[0m
+\033[35;44m |   _      _   || \033[0m
+\033[35;44m |  (_) \033[37mVG\033[35m (_)  || \033[0m
+\033[35;44m |______________|| \033[0m
+\033[35;44m |==============|/ \033[0m"
+
+LOGO_256_COLORS="   _______________
+  /-------------/|
+ |   _      _   ||
+ |  (_) VG (_)  ||
+ |______________||
+ |==============|/"
+
 VERSION_INFOTEXT="$PROGRAM_NAME $PROGRAM_VERSION
 git upstream $PROGRAM_UPSTREAM
 Copyright (C) 2020 $AUTHOR_NAME.
@@ -77,7 +99,17 @@ check_options()
 
 	if [ "${OPTIONS_STRING#*V}" != "$OPTIONS_STRING" ]
 	then
-		printf "$VERSION_INFOTEXT\n"
+		COLORS=$(tput colors)
+		if [ $COLORS -lt 8 ]
+		then
+			LOGO=$LOGO_MONOCHROME
+		elif [ $COLORS -lt 256 ]
+		then
+			LOGO=$LOGO_8_COLORS
+		else
+			LOGO=$LOGO_256_COLORS
+		fi
+		printf "$LOGO\n\n$VERSION_INFOTEXT\n"
 		return 2
 	fi