Return to Snippet

Revision: 26601
at May 3, 2010 18:43 by mcarneiro


Initial Code
#!/bin/bash
PATH_TO_FILTER="$(pwd | awk -F "/" '{print $(NF)}')";
zip $1 $(svn log $2 -v | grep $PATH_TO_FILTER | grep -E "\s+?[AMR]" | awk -F "$PATH_TO_FILTER/" '{print $2}' | awk '{print $1}' | grep "\." | sort -u)

#usage:
#{COMMAND_NAME}  test.zip -l2 # will get the last 2 revisions and add the added or changed files to the text.zip file

Initial URL

                                

Initial Description
tested only on mac osx terminal

Initial Title
Zip from SVN change-log

Initial Tags
svn

Initial Language
Bash