-
Notifications
You must be signed in to change notification settings - Fork 3
/
pull.sh
executable file
·32 lines (23 loc) · 1.22 KB
/
pull.sh
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
#!/bin/bash -ex
VERSION=2.06
REVISION=13
wget http://deb.debian.org/debian/pool/main/g/grub2/grub2_$VERSION-$REVISION.debian.tar.xz
tar xf grub2_$VERSION-$REVISION.debian.tar.xz
rm grub2_$VERSION-$REVISION.debian.tar.xz
wget http://deb.debian.org/debian/pool/main/g/grub2/grub2_$VERSION.orig.tar.xz
tar xf grub2_$VERSION.orig.tar.xz --strip 1
rm grub2_$VERSION.orig.tar.xz
rm debian/patches/efi-variable-storage-minimise-writes.patch
sed -i.bak 's/efi-variable-storage-minimise-writes.patch//' debian/patches/series
rm debian/patches/series.bak
cp zpool-degraded-vdev.patch debian/patches
echo 'zpool-degraded-vdev.patch' >> debian/patches/series
cp rectify-terminal-io.patch debian/patches
echo 'rectify-terminal-io.patch' >> debian/patches/series
echo -e "$(cat changelog)\n\n$(cat debian/changelog)" > debian/changelog
sed -i.bak "s/deb_version\s*:=.\+/deb_version\t\t:= "'"'"$VERSION-$REVISION"'"'"/" debian/rules
rm debian/rules.bak
sed -i.bak "s/^version_binary.\+/version_binary="'"'"$VERSION-$REVISION"'"'"/" debian/signing-template.generate
sed -i.bak "s/^version_mangled.\+/version_mangled="'"'"$VERSION"'"'"/" debian/signing-template.generate
rm debian/signing-template.generate.bak
echo -e "\ndh_auto_test:\n" >> debian/rules