summaryrefslogtreecommitdiffstats
path: root/deploy
blob: f6dc5398fed9f48ad88ffb54a7e15d0c4ca594cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#! /bin/sh
DEPLOY_DIR=$HOME/ #don't forget the trailing slash
OIFS="$IFS"
IFS=$'\n' 

cd $(dirname $0)
find -type d ! \( -type d -path "*.git" -prune \) -print0 | xargs -0 -I '{}' mkdir -p $DEPLOY_DIR{}
for file in $(find ! \( -type d -path "*.git" -prune \) -type f ! -path "./deploy" ! -path "./README")
do
    ln -snf $PWD/$file $DEPLOY_DIR$(dirname $file) 
done