Bug 59826 - Apply ant-generated patch.tar.gz patches
Summary: Apply ant-generated patch.tar.gz patches
Alias: None
Product: POI
Classification: Unclassified
Component: POI Overall (show other bugs)
Version: 3.15-dev
Hardware: Other Linux
: P2 enhancement (vote)
Target Milestone: ---
Assignee: POI Developers List
Depends on:
Reported: 2016-07-07 20:26 UTC by Javen O'Neal
Modified: 2016-07-08 11:42 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Javen O'Neal 2016-07-07 20:26:01 UTC
An ant target that will:
1. Extract patch.tar.gz (tar xvzf patch.tar.gz)
2. Apply changes in patch.txt (svn patch patch.txt, requires svn client 1.7+)
3. Add new files and set svn properties to working copy (svn add (files from tar --list patch.tar.gz))
Comment 1 Javen O'Neal 2016-07-08 11:42:20 UTC
Added in r1751883.

Copy patch.tar.gz file to svn working copy root (the patch tarball must be named patch.tar.gz and it must be located in the root)
Usage: ant -f patch.xml apply

Basically, what the script does is:

$ tar xvzf patch.tar.gz
$ svn patch patch.txt
$ tar --list -f patch.tar.gz | grep --invert-match patch\.txt | xargs svn add