diff options
Diffstat (limited to 'deploy')
| -rwxr-xr-x | deploy | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -0,0 +1,12 @@ +#! /bin/sh +DEPLOY_DIR=$HOME/ #don't forget the trailing slash +OIFS="$IFS" +IFS=$'\n' + +cd $(dirname $0) +find -type d ! \( -path "*.git" -prune \) -print0 | xargs -0 -I '{}' mkdir -p $DEPLOY_DIR{} +for file in $(find ! \( -path "*.git" -prune \) -type f ! -path "./deploy.sh" ! -path "./README") +do + ln -snf $PWD/$file $DEPLOY_DIR$(dirname $file) +done + |
