Debian Codegraph @

src/fix-wheel-tag.sh

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/bin/bash`.
2
3 # Ref.: https://github.com/pypa/manylinux
4 #
5
6 echoscip-shell system . . echo. Fixing wheel tag ...
7 if [scip-shell system . . `[`. `unamescip-shell system . . uname. -s` = Linux ]; then
8 echoscip-shell system . . echo. ... on Linux ...
9 # $ ldd --version
10 # on ubuntu: ldd (Ubuntu GLIBC 2.31-0ubuntu9.2) 2.31
11 # on archlinux: ldd (GNU libc) 2.33
12 X=$(lddscip-shell system . . ldd. --version | headscip-shell system . . head. -1 | cutscip-shell system . . cut. -d ')' -f 2 | sedscip-shell system . . sed. -e 's/ *//' | cutscip-shell system . . cut. -d '.' -f 1)
13 Y=$(lddscip-shell system . . ldd. --version | headscip-shell system . . head. -1 | cutscip-shell system . . cut. -d ')' -f 2 | sedscip-shell system . . sed. -e 's/ *//' | cutscip-shell system . . cut. -d '.' -f 2)
14 TAG=manylinux\_$X\_$Y
15 else
16 echoscip-shell system . . echo. ... not on Linux, bailing out ...
17 exit 0
18 fi
19
20 ORIG=$(lsscip-shell system . . ls. pynauty-*-linux_*.whl)
21 NEW=$(echoscip-shell system . . echo. $ORIG | sedscip-shell system . . sed. -e "s/linux/$TAG/")
22
23 echoscip-shell system . . echo. $ORIG '-->' $NEW
24 mvscip-shell system . . mv. -f $ORIG $NEW
25
26 echoscip-shell system . . echo. ... done.