Created
October 15, 2009 08:55
-
-
Save jesperronn/210796 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# set -x | |
# Script will copy contents of current dir (except the files defined in _exclude_list) | |
# into it's own separate folder. It will also expand symlinks so that windows users | |
# can use the script directly | |
# Created 2009-10-14 by Jesper Rønn-Jensen | |
echo ".* | |
_*" > _exclude_list.txt | |
cd `dirname $0` | |
BASE=`pwd -P` | |
DEST=`dirname ~/src/htmlguide` #remember trailing slash of parent | |
FLAGS=' -av --exclude-from _exclude_list.txt --delete' | |
rsync $FLAGS --copy-dirlinks $BASE $DEST/ #remember trailing slash at destination |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment