forked from thoughtpolice/bcachefs-tools
-
Notifications
You must be signed in to change notification settings - Fork 91
/
make-release-tarball.sh
executable file
·60 lines (41 loc) · 1.87 KB
/
make-release-tarball.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/bin/bash
set -o errexit
version=$1
git checkout v$version
git clean -xfd
cargo license > COPYING.rust-dependencies
git ls-files|
tar --create --file bcachefs-tools-$version.tar -T - \
--transform="s_^_bcachefs-tools-$version/_"
tar --append --file bcachefs-tools-$version.tar \
--transform="s_^_bcachefs-tools-$version/_" \
COPYING.rust-dependencies
zstd -z --ultra bcachefs-tools-$version.tar
gpg --armor --detach-sign bcachefs-tools-$version.tar
mv bcachefs-tools-$version.tar.asc bcachefs-tools-$version.tar.sign
gpg --armor --sign bcachefs-tools-$version.tar
scp bcachefs-tools-$version.tar.zst evilpiepirate.org:/var/www/htdocs/bcachefs-tools/
scp bcachefs-tools-$version.tar.asc evilpiepirate.org:/var/www/htdocs/bcachefs-tools/
scp bcachefs-tools-$version.tar.sign evilpiepirate.org:/var/www/htdocs/bcachefs-tools/
cargo vendor
mkdir .cargo
cat > .cargo/config.toml <<-ZZ
[source.crates-io]
replace-with = "vendored-sources"
[source."git+https://evilpiepirate.org/git/rust-bindgen.git"]
git = "https://evilpiepirate.org/git/rust-bindgen.git"
replace-with = "vendored-sources"
[source.vendored-sources]
directory = "vendor"
ZZ
cp bcachefs-tools-$version.tar bcachefs-tools-vendored-$version.tar
tar --append --file bcachefs-tools-vendored-$version.tar \
--transform="s_^_bcachefs-tools-$version/_" \
.cargo vendor
zstd -z --ultra bcachefs-tools-vendored-$version.tar
gpg --armor --detach-sign bcachefs-tools-vendored-$version.tar
mv bcachefs-tools-vendored-$version.tar.asc bcachefs-tools-vendored-$version.tar.sign
gpg --armor --sign bcachefs-tools-vendored-$version.tar
scp bcachefs-tools-vendored-$version.tar.zst evilpiepirate.org:/var/www/htdocs/bcachefs-tools/
scp bcachefs-tools-vendored-$version.tar.asc evilpiepirate.org:/var/www/htdocs/bcachefs-tools/
scp bcachefs-tools-vendored-$version.tar.sign evilpiepirate.org:/var/www/htdocs/bcachefs-tools/