blob: c613d0529f88f75f10d0a829d139af5a98aa31b0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
foreground { echo "Mail from " $1 }
if -x 77 { test $1 = IPv6:::1 }
backtick message_id { mhdr -h Message-Id - }
backtick dir { mktemp -d }
multisubstitute {
importas -i message_id message_id
importas -i dir dir
define origin /home/spectrum/git/spectrum.git
}
foreground {
if { mkdir ${dir}/git }
cd ${dir}/git
export GIT_CONFIG_COUNT 2
export GIT_CONFIG_KEY_0 am.messageid
export GIT_CONFIG_VALUE_0 true
export GIT_CONFIG_KEY_1 b4.midmask
export GIT_CONFIG_VALUE_1 https://spectrum-os.org/lists/archives/spectrum-test/%s
export XDG_CACHE_HOME ${dir}/cache
export XDG_DATA_HOME ${dir}/data
if { git clone -n --single-branch --reference $origin $origin . }
if -x 75 { b4 shazam -CH $message_id }
pipeline {
git log -z --format=%H:refs/patches/%(trailers:key=Message-Id,valueonly)
HEAD..FETCH_HEAD
}
pipeline { tr -d <> }
redirfd -w 2 /tmp/err
xargs -tr0
git push origin --dry-run
}
importas -iu exit ?
if { rm -rf $dir }
exit $exit
|