blob: 0c147afe672a0c8940c090c20b7315fd5e8dcaa9 (
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 ! \( -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
|