File tree 1 file changed +28
-1
lines changed
1 file changed +28
-1
lines changed Original file line number Diff line number Diff line change 1
- #! /bin/sh
1
+ #! /bin/bash
2
2
set -e
3
3
4
+ check_statically_linked () {
5
+ local dir=$1
6
+ local all_statically_linked=true
7
+
8
+ for file in " $dir " /* ; do
9
+ if [ -f " $file " ]; then
10
+ if file " $file " | grep -q " statically linked" ; then
11
+ echo " $file is statically linked."
12
+ else
13
+ echo " $file is NOT statically linked."
14
+ all_statically_linked=false
15
+ fi
16
+ fi
17
+ done
18
+
19
+ if $all_statically_linked ; then
20
+ echo " All files in $dir are statically linked executables."
21
+ else
22
+ echo " Error: Not all files in $dir are statically linked executables."
23
+ exit 1
24
+ fi
25
+ }
26
+
4
27
chmod +x binaries-* /* .exe
5
28
6
29
mv binaries-darwin darwin
@@ -11,3 +34,7 @@ mv binaries-win32 win32
11
34
12
35
mv lib-ocaml lib/ocaml
13
36
mv ninja/COPYING ninja.COPYING
37
+
38
+ check_statically_linked " linux"
39
+ check_statically_linked " linuxarm64"
40
+
You can’t perform that action at this time.
0 commit comments