From 5a386e5119bd6060c06ab909f2e9b4c73050bfdb Mon Sep 17 00:00:00 2001 From: Correl Roush Date: Thu, 12 Apr 2018 14:07:33 -0400 Subject: [PATCH] [provisioning] Add recipe descriptions --- provision.sh | 6 ++++-- recipes/apib | 1 + recipes/base | 1 + recipes/bin | 1 + recipes/brew | 1 + recipes/elm | 1 + recipes/emacs | 1 + recipes/email | 1 + recipes/erlang | 1 + recipes/exercism | 1 + recipes/git | 1 + recipes/graphviz | 1 + recipes/haskell | 1 + recipes/ledger | 1 + recipes/mit-scheme | 1 + recipes/nextcloud | 1 + recipes/nvm | 1 + recipes/pandoc | 3 ++- recipes/prolog | 1 + recipes/python | 1 + recipes/shell-utils | 1 + recipes/tex | 1 + recipes/zsh | 1 + 23 files changed, 27 insertions(+), 3 deletions(-) diff --git a/provision.sh b/provision.sh index 45532cc..11c5f0d 100755 --- a/provision.sh +++ b/provision.sh @@ -3,7 +3,7 @@ set +e trap 'exit' INT RECIPE_PATH=${HOME}/dotfiles/recipes -RECIPES=$(ls $RECIPE_PATH|grep -v '^_') +RECIPES=$(ls $RECIPE_PATH|grep -v '^_' | sort) INSTALL=() STACK=() @@ -16,7 +16,9 @@ while [[ $# -gt 0 ]]; do -l|--list) echo Available recipes: for recipe in $RECIPES; do - echo " $recipe" + description=$(grep '^# Description: ' "${RECIPE_PATH}/$recipe" \ + | cut -d' ' -f 3-) + printf "%15s %s\n" "$recipe" "$description" done exit ;; diff --git a/recipes/apib b/recipes/apib index 193581b..83593d0 100644 --- a/recipes/apib +++ b/recipes/apib @@ -1,4 +1,5 @@ #!/bin/bash +# Description: API Blueprint set -e _recipe nvm diff --git a/recipes/base b/recipes/base index 8b09e23..c6e5803 100644 --- a/recipes/base +++ b/recipes/base @@ -1,4 +1,5 @@ #!/bin/bash +# Description: Core set of frequently-used recipes set -e _recipe brew diff --git a/recipes/bin b/recipes/bin index f9bcc54..a3e7ba3 100644 --- a/recipes/bin +++ b/recipes/bin @@ -1,4 +1,5 @@ #!/bin/bash +# Description: Various scripts and utilities set -e _recipe _path diff --git a/recipes/brew b/recipes/brew index d7f73d9..6eb1b14 100644 --- a/recipes/brew +++ b/recipes/brew @@ -1,4 +1,5 @@ #!/bin/bash +# Description: Package manager - Homebrew on OSX, Linuxbrew on Linux set -e function _brew { diff --git a/recipes/elm b/recipes/elm index 9fe72a5..778790b 100644 --- a/recipes/elm +++ b/recipes/elm @@ -1,4 +1,5 @@ #!/bin/bash +# Description: The Elm programming language set -e _recipe nvm diff --git a/recipes/emacs b/recipes/emacs index 5a7861d..202e766 100644 --- a/recipes/emacs +++ b/recipes/emacs @@ -1,4 +1,5 @@ #!/bin/bash +# Description: GNU Emacs set -e _recipe brew diff --git a/recipes/email b/recipes/email index a01e839..7c05e75 100644 --- a/recipes/email +++ b/recipes/email @@ -1,4 +1,5 @@ #!/bin/bash +# Description: Email syncing tools plus the mu4e client set -e _recipe brew diff --git a/recipes/erlang b/recipes/erlang index ff1b514..ff682db 100644 --- a/recipes/erlang +++ b/recipes/erlang @@ -1,4 +1,5 @@ #!/bin/bash +# Description: The Erlang programming language set -e _recipe brew diff --git a/recipes/exercism b/recipes/exercism index 0e013c3..3af6ca3 100644 --- a/recipes/exercism +++ b/recipes/exercism @@ -1,4 +1,5 @@ #!/bin/bash +# Description: Coding exercises from exercism.io set -e _recipe brew diff --git a/recipes/git b/recipes/git index 0f9bf37..8e9cfd7 100644 --- a/recipes/git +++ b/recipes/git @@ -1,4 +1,5 @@ #!/bin/bash +# Description: The Git version control system set -e case $_PLATFORM in diff --git a/recipes/graphviz b/recipes/graphviz index 8ff7793..42f0f81 100644 --- a/recipes/graphviz +++ b/recipes/graphviz @@ -1,4 +1,5 @@ #!/bin/bash +# Description: Graph visualization software set -e case $_PLATFORM in diff --git a/recipes/haskell b/recipes/haskell index b9bd6c4..0d6424a 100644 --- a/recipes/haskell +++ b/recipes/haskell @@ -1,4 +1,5 @@ #!/bin/bash +# Description: The Haskell programming language set -e _brew haskell-stack diff --git a/recipes/ledger b/recipes/ledger index e808686..942fd9e 100644 --- a/recipes/ledger +++ b/recipes/ledger @@ -1,4 +1,5 @@ #!/bin/bash +# Description: Command-line double-entry accounting set -e _recipe brew diff --git a/recipes/mit-scheme b/recipes/mit-scheme index ddf1923..46c2f8f 100644 --- a/recipes/mit-scheme +++ b/recipes/mit-scheme @@ -1,4 +1,5 @@ #!/bin/bash +# Description: MIT Scheme (used in SICP) set -e _recipe brew diff --git a/recipes/nextcloud b/recipes/nextcloud index d1d19c4..1e74f4e 100644 --- a/recipes/nextcloud +++ b/recipes/nextcloud @@ -1,4 +1,5 @@ #!/bin/bash +# Description: File syncing set -e case $_PLATFORM in diff --git a/recipes/nvm b/recipes/nvm index 5f580a0..f64d4a5 100644 --- a/recipes/nvm +++ b/recipes/nvm @@ -1,4 +1,5 @@ #!/bin/bash +# Description: Javascript version management set -e function __install_nvm { diff --git a/recipes/pandoc b/recipes/pandoc index f88c452..96c0dcb 100644 --- a/recipes/pandoc +++ b/recipes/pandoc @@ -1,5 +1,6 @@ #!/bin/bash +# Description: Document conversion tool set -e _recipe brew -_brew pandoc \ No newline at end of file +_brew pandoc diff --git a/recipes/prolog b/recipes/prolog index bedfa1b..b6422c1 100644 --- a/recipes/prolog +++ b/recipes/prolog @@ -1,4 +1,5 @@ #!/bin/bash +# Description: The (SWI) Prolog programming language set -e _recipe brew diff --git a/recipes/python b/recipes/python index d64fab2..f3a341d 100644 --- a/recipes/python +++ b/recipes/python @@ -1,4 +1,5 @@ #!/bin/bash +# Description: The Python programming language set -e __PYTHON_VERSION=3.6.4 diff --git a/recipes/shell-utils b/recipes/shell-utils index b823a73..f0146f5 100644 --- a/recipes/shell-utils +++ b/recipes/shell-utils @@ -1,4 +1,5 @@ #!/bin/bash +# Description: Useful command-line utilities set -e _recipe brew diff --git a/recipes/tex b/recipes/tex index 1c71294..2a102fc 100644 --- a/recipes/tex +++ b/recipes/tex @@ -1,4 +1,5 @@ #!/bin/bash +# Description: Document typesetting set -e case "$(uname -s)" in diff --git a/recipes/zsh b/recipes/zsh index e539bea..868194b 100644 --- a/recipes/zsh +++ b/recipes/zsh @@ -1,4 +1,5 @@ #!/bin/bash +# Description: Feature-rich interactive shell with plugins set -e case $_PLATFORM in