Skip to content

Instantly share code, notes, and snippets.

@chrisisbeef
Created November 11, 2014 20:38
Show Gist options
  • Save chrisisbeef/48a0b3bf38ee923b9944 to your computer and use it in GitHub Desktop.
Save chrisisbeef/48a0b3bf38ee923b9944 to your computer and use it in GitHub Desktop.
SVN/Maven: Get a list of changed files for a specified range of revisions relative to the target directory of a compiled maven project
for f in $(svn diff --summarize -r16044:16045 | grep -v "/test/" | awk '{print $2}'); do printf "classes/"; if [[ "$f" =~ "/java/" ]]; then printf "$f" | cut -b 15- | sed 's/.java/*.class/'; elif [[ "$f" =~ "/resources/" ]]; then printf "$f" | cut -b 20-; fi; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment