Created
March 30, 2010 12:06
-
-
Save maliqq/349047 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
# export diff | |
export_dir="../export" | |
mkdir -p $export_dir | |
for file in $(svn diff --summarize -r$1:$2) | |
do | |
if [ -f $file ] | |
then | |
dirname=${file%/*} | |
filename=${file##*/} | |
mkdir -p "$export_dir/$dirname" | |
cp $file "$export_dir/$dirname" | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment