Skip to content

Commit 5762910

Browse files
vmchaleBodigrim
authored andcommitted
Add script so that output is verifiable
1 parent c89856c commit 5762910

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

update-c-sources.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env bash
2+
3+
set -e pipefail
4+
5+
zlib="$(curl http://zlib.net/ | rg '(zlib-\d+(\.\d+)*)\.tar\.gz' -o -r '$1' | head -n1)"
6+
7+
curl "http://zlib.net/${zlib}.tar.gz" -o "${zlib}.tar.gz"
8+
tar xvf "${zlib}.tar.gz"
9+
10+
for csrc in $(ls -1 cbits)
11+
do
12+
cp "${zlib}/${csrc}" cbits/
13+
done

0 commit comments

Comments
 (0)