diff options
| author | Rodrigo Osorio <rodrigo@FreeBSD.org> | 2015-03-30 21:13:12 +0000 |
|---|---|---|
| committer | Rodrigo Osorio <rodrigo@FreeBSD.org> | 2015-03-30 21:13:12 +0000 |
| commit | 88944e3161bb76ea10277282261af8c2db14cd66 (patch) | |
| tree | 069f786c9566a41bfb26bba1e2df0900803eefc5 /Tools/scripts/README.getpatch.sh | |
| parent | 5be0968ee9699f704760bd19860edd62479c5954 (diff) | |
Notes
Diffstat (limited to 'Tools/scripts/README.getpatch.sh')
| -rw-r--r-- | Tools/scripts/README.getpatch.sh | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/Tools/scripts/README.getpatch.sh b/Tools/scripts/README.getpatch.sh new file mode 100644 index 000000000000..be5d7cf16b8d --- /dev/null +++ b/Tools/scripts/README.getpatch.sh @@ -0,0 +1,37 @@ +getpatch.sh is a shell script to help me dealing +with bugzilla attachements. + +Usage: getpatch [-dp] <num> <num> ... + -d : download deprecate patches too + -p : store the patches in the current dir, instead of the dedicated directory +use the GETPATCH_DIR variable to define the root location for the downloaded patches + +Exemple1: simple usage +% getpatch 197844 +Bug ID: 197844 + + attachment 153202-fcgi.diff is obsolete, skip + + attachment 153215-fcgi.diff download success + >> Patches stored in /tmp/197844 + +Exemple2: download deprecated too +getpatch -d 197844 +Bug ID: 197844 + + attachment 153202-fcgi.diff download success + + attachment 153215-fcgi.diff download success + >> Patches stored in /tmp/197844 + +Exemple3: don't create a dedicate directory +% getpatch -p 197844 +Bug ID: 197844 + + attachment 153202-fcgi.diff is obsolete, skip + + attachment 153215-fcgi.diff download success + >> Patches stored in /tmp + +Exemple4: use GETPATCH_DIR +% setenv GETPATCH_DIR ~/patch-store/ +% getpatch 197844 +Bug ID: 197844 + + attachment 153202-fcgi.diff is obsolete, skip + + attachment 153215-fcgi.diff download success + >> Patches stored in /usr/home/rodrigo/patch-store/197844 + |
