Add dotify-compile command

This commit is contained in:
2013-10-03 23:04:33 +01:00
parent 583cd5f1b9
commit b26031c4ea
2 changed files with 12 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
#! /usr/bin/env bash #! /usr/bin/env bash
set -e set -e
shopt -s extglob
[ -n "$DOTIFY_DEBUG" ] && set -x [ -n "$DOTIFY_DEBUG" ] && set -x
# dotify {{VERSION}} # dotify {{VERSION}}
@@ -50,6 +51,7 @@ source "../lib/internals/parse-dotfile-options.sh"
source "../lib/dotify-version.sh" source "../lib/dotify-version.sh"
source "../lib/dotify-help.sh" source "../lib/dotify-help.sh"
source "../lib/dotify-info.sh" source "../lib/dotify-info.sh"
source "../lib/dotify-compile.sh"
source "../lib/dotify-install.sh" source "../lib/dotify-install.sh"
# #
@@ -114,6 +116,9 @@ case "$command" in
"info" ) "info" )
dotify-info dotify-info
;; ;;
"compile" )
dotify-compile
;;
"" | "install" ) "" | "install" )
dotify-install dotify-install
;; ;;

View File

@@ -0,0 +1,7 @@
dotify-compile() {
locate-dotfile
if [ "$?" != "0" ]; then return 1; fi
compile-dotfile
return $?
}