ico-sxiv

View the individual entries of an ICO file in sxiv ⏺️

Commit
a2dcae534b7f9b9b44b6f2a9ebd20c739126a610
Parent
4161668cd8da4f2fbdf7922218075fd34f04ea80
Author
Pablo Emilio Escobar Gaviria <pablo-escobar@riseup.net>
Date

Added comments with information about the program in the soource-files

Diffstat

2 files changed, 26 insertions, 8 deletions

Status File Name N° Changes Insertions Deletions
Modified ico-view 12 12 0
Modified install.sh 22 14 8
diff --git a/ico-view b/ico-view
@@ -1,4 +1,16 @@
 #!/bin/sh
+#  _                       _               
+# (_)                     (_)              
+#  _  ___ ___ ________   ___  _____      __
+# | |/ __/ _ \______\ \ / / |/ _ \ \ /\ / /
+# | | (_| (_) |      \ V /| |  __/\ V  V / 
+# |_|\___\___/        \_/ |_|\___| \_/\_/  
+#                                          
+# View the individual entries of an ICO file in `sxiv`.
+# 
+# Copyright (C) 2020 Pablo Emilio Escobar Gaviria.
+# Free use of this software is granted under the terms of the GPL-3.0 License.
+
 TMP_DIR="$(mktemp -d)"
 convert "$1" "$TMP_DIR/icon.png"
 sxiv "$TMP_DIR"/*.png
diff --git a/install.sh b/install.sh
@@ -1,4 +1,15 @@
 #!/bin/sh
+#  _                       _               
+# (_)                     (_)              
+#  _  ___ ___ ________   ___  _____      __
+# | |/ __/ _ \______\ \ / / |/ _ \ \ /\ / /
+# | | (_| (_) |      \ V /| |  __/\ V  V / 
+# |_|\___\___/        \_/ |_|\___| \_/\_/  
+#                                          
+# View the individual entries of an ICO file in `sxiv`.
+# 
+# Copyright (C) 2020 Pablo Emilio Escobar Gaviria.
+# Free use of this software is granted under the terms of the GPL-3.0 License.
 
 puts ()
 {
@@ -11,24 +22,19 @@ error ()
     exit 1
 }
 
-dependencyWarning () 
+dependencyError () 
 {
     error "$(printf "The command '%s' could not be found.\nPlease make sure it is included in the \$PATH enviroment variable or follow the installation instructions on %s." "$1" "$2")"
 }
 
-message ()
-{
-    puts INSTALLER "$1" 2
-}
-
 if ! [ -x "$(command -v mktemp)" ]
 then
-    dependencyWarning "mktemp" "https://www.gnu.org/software/coreutils/"
+    dependencyError "mktemp" "https://www.gnu.org/software/coreutils/"
 fi
 
 if ! [ -x "$(command -v sxiv)" ]
 then
-    dependencyWarning "sxiv" "https://github.com/muennich/sxiv"
+    dependencyError "sxiv" "https://github.com/muennich/sxiv"
 fi
 
 if [ -f "$HOME/.local/bin/ico-view" ]