-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathhelperfuncs
48 lines (44 loc) · 916 Bytes
/
helperfuncs
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
37
38
39
40
41
42
43
44
45
46
47
48
gs()
{
git init
git add .
git commit -m "orig"
git tag orig
#git gc >/dev/null 2>&1 &
}
qs()
{
local fuzz=--fuzz=1
quilt -v setup $fuzz $(basename $(pwd)).spec
d=$(find . -maxdepth 1 -type d | grep -v -e '/binaries' -e /RPMS -e /deps -e '\.osc$' -e '^\.$'|head -1)
if [[ $d ]] ; then
cd $d
touch series
[[ -e patches ]] || ln -s ".." patches
quilt push -a $fuzz
fi
}
bcocd()
{
osc bco
cd home\:*\:branches\:*/$(basename $(pwd)) &&
cp -a ../../*spec .
osc up
osc meta prjconf -F ~/reproducibleopensuse/prjconf
}
function vonoa
{
d=${1:-.}
view $d/.rb.noarchcheck.diff
}
function rbn
{
make -f ~/reproducibleopensuse/Makefile.rebuild .build-differed-nachbau
}
export -f rbn
function rbnoa
{
make -f ~/reproducibleopensuse/Makefile.rebuild .rb.noarchcheck
}
export -f rbnoa
# to be used with "rbmany rbn *"