diff options
author | Karel Kočí <cynerd@email.cz> | 2017-10-13 13:44:11 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2017-10-13 13:44:11 +0200 |
commit | c5f307a330c141c955d4bc99f4675d816b28e223 (patch) | |
tree | 35f76c615cdd9c1349e52e198dd330edd4051298 /utils | |
parent | 496fad1b1059118900d8450ce400330c65116497 (diff) | |
download | multiconfig-c5f307a330c141c955d4bc99f4675d816b28e223.tar.gz multiconfig-c5f307a330c141c955d4bc99f4675d816b28e223.tar.bz2 multiconfig-c5f307a330c141c955d4bc99f4675d816b28e223.zip |
Some update
Diffstat (limited to 'utils')
-rw-r--r-- | utils | 29 |
1 files changed, 29 insertions, 0 deletions
@@ -0,0 +1,29 @@ +# vim: ft=sh + +die() { + kill $$ +} + +inst_f() { + if [ -f "$2" ]; then + else + mkdir "$(basedir "$2")" + echo "New file: $1 -> $2" + fi +} + +inst_d() { + # TODO + true +} + +inst() { + if [ -f "$1" ]; then + inst_f "$1" "$2" + elif [ -d "$1" ]; then + inst_d "$1" "$2" + else + echo "Unsupported install target type of: $1" + die + fi +} |