Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports
Path: blob/main/Tools/scripts/README.getpatch.sh
18157 views
1
getpatch.sh is a shell script to help me dealing
2
with bugzilla attachements.
3
4
Usage: getpatch [-dp] <num> <num> ...
5
-d : download deprecate patches too
6
-p : store the patches in the current dir, instead of the dedicated directory
7
use the GETPATCH_DIR variable to define the root location for the downloaded patches
8
9
Exemple1: simple usage
10
% getpatch 197844
11
Bug ID: 197844
12
+ attachment 153202-fcgi.diff is obsolete, skip
13
+ attachment 153215-fcgi.diff download success
14
>> Patches stored in /tmp/197844
15
16
Exemple2: download deprecated too
17
getpatch -d 197844
18
Bug ID: 197844
19
+ attachment 153202-fcgi.diff download success
20
+ attachment 153215-fcgi.diff download success
21
>> Patches stored in /tmp/197844
22
23
Exemple3: don't create a dedicate directory
24
% getpatch -p 197844
25
Bug ID: 197844
26
+ attachment 153202-fcgi.diff is obsolete, skip
27
+ attachment 153215-fcgi.diff download success
28
>> Patches stored in /tmp
29
30
Exemple4: use GETPATCH_DIR
31
% setenv GETPATCH_DIR ~/patch-store/
32
% getpatch 197844
33
Bug ID: 197844
34
+ attachment 153202-fcgi.diff is obsolete, skip
35
+ attachment 153215-fcgi.diff download success
36
>> Patches stored in /usr/home/rodrigo/patch-store/197844
37
38
39