From 0ac89cdeb1d03c2dcb4f804497c4be7f9ac14236 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 27 May 2018 17:59:43 -0300 Subject: Adds lsd script --- lsd | 26 ++++++++++++++++++++++++++ ssl-wrapper | 2 +- termplex | 2 +- utils-git | 2 +- utils-gpg | 2 +- utils-spreadsheet | 2 +- utils-ssh | 2 +- utils-tor | 2 +- utils-x11 | 2 +- wrappers | 2 +- 10 files changed, 35 insertions(+), 9 deletions(-) create mode 100755 lsd diff --git a/lsd b/lsd new file mode 100755 index 0000000..668fca3 --- /dev/null +++ b/lsd @@ -0,0 +1,26 @@ +#!/bin/bash +# +# Lightweight Software Distribution (LSD) Management Script +# + +# Parameters +BASENAME="`basename $0`" +ACTION="$1" + +# List apps +function lsd_list { + #find -maxdepth 2 -iname 'readme*' -exec head -1 {} \; + find -maxdepth 2 -iname 'readme*' | while read readme; do + if [ "$readme" == "./README.md" ]; then + continue + fi + + echo -n "`dirname $readme | sed -e 's/^.\///'`: " + head -1 $readme + done +} + +# Dispatch +if [ -z "$ACTION" ] || [ "$ACTION" == "list" ]; then + lsd_list +fi diff --git a/ssl-wrapper b/ssl-wrapper index 634e38c..f4585b0 160000 --- a/ssl-wrapper +++ b/ssl-wrapper @@ -1 +1 @@ -Subproject commit 634e38ccfc2f653bde87f48d507e43dcd8bc2f27 +Subproject commit f4585b0d030d870fcaacbf8c70b11f423ee72dc7 diff --git a/termplex b/termplex index 777ce69..4c0902c 160000 --- a/termplex +++ b/termplex @@ -1 +1 @@ -Subproject commit 777ce6973d8aa569db0fe4ebe36761747392d9c7 +Subproject commit 4c0902c24e41313b88b9f3b5eeea6c06f335df30 diff --git a/utils-git b/utils-git index 245c01d..068a857 160000 --- a/utils-git +++ b/utils-git @@ -1 +1 @@ -Subproject commit 245c01d03b472118d212d97ddc1d9962399bf049 +Subproject commit 068a857b6e5fcb52855ef8baea6b2830047e306a diff --git a/utils-gpg b/utils-gpg index 938f197..cefbc96 160000 --- a/utils-gpg +++ b/utils-gpg @@ -1 +1 @@ -Subproject commit 938f197fab41d867da881f92014ad52922a1ee30 +Subproject commit cefbc9617467936c4eea9debe7503cbdce3c4377 diff --git a/utils-spreadsheet b/utils-spreadsheet index e08e48f..bcbd744 160000 --- a/utils-spreadsheet +++ b/utils-spreadsheet @@ -1 +1 @@ -Subproject commit e08e48fab417bb7a6c8664d2f18a1338337ac425 +Subproject commit bcbd7448095dccce1d3ec8f5e6e2406a1e6241c6 diff --git a/utils-ssh b/utils-ssh index 3c52808..41d6b78 160000 --- a/utils-ssh +++ b/utils-ssh @@ -1 +1 @@ -Subproject commit 3c528082d64fbd01a723d65563e1d3645bc5f8f2 +Subproject commit 41d6b78bdb3fd998308818fce2dd017c1eb136ff diff --git a/utils-tor b/utils-tor index 1c60bc0..a08b60f 160000 --- a/utils-tor +++ b/utils-tor @@ -1 +1 @@ -Subproject commit 1c60bc05815c50b28aea23eb47359f62e1882415 +Subproject commit a08b60fa589b37adde59599396f7a761a47aa6e9 diff --git a/utils-x11 b/utils-x11 index b0b13a9..fe1581f 160000 --- a/utils-x11 +++ b/utils-x11 @@ -1 +1 @@ -Subproject commit b0b13a93f6bac631234abcb00ccea225257cf47b +Subproject commit fe1581f85427b4918a5a73aa3fb86c992cb11319 diff --git a/wrappers b/wrappers index 2b3bb04..adce0a1 160000 --- a/wrappers +++ b/wrappers @@ -1 +1 @@ -Subproject commit 2b3bb04fcdf4f7bc1281a11a654f3b1a3277f593 +Subproject commit adce0a14f172899279512c5616c07c34792a419b -- cgit v1.2.3