]> glassweightruler.freedombox.rocks Git - Ventoy.git/blob - SQUASHFS/squashfs-tools-4.4/squashfs-tools/build.sh
1.1.07 release
[Ventoy.git] / SQUASHFS / squashfs-tools-4.4 / squashfs-tools / build.sh
1 #!/bin/bash
2
3 export LZMA_LIBDIR=$PWD/../../LIB/LZMA
4 export LZ4_LIBDIR=$PWD/../../LIB/LZ4
5 export ZSTD_LIBDIR=$PWD/../../LIB/ZSTD
6 export LZO_LIBDIR=$PWD/../../LIB/LZO
7
8 if [ -e /lib64/libz.a ]; then
9 export VTZLIB=/lib64/libz.a
10 elif [ -e /lib/libz.a ]; then
11 export VTZLIB=/lib/libz.a
12 elif [ -e /usr/lib/libz.a ]; then
13 export VTZLIB=/usr/lib/libz.a
14 fi
15
16 rm -f unsquashfs
17 make clean
18 make -e unsquashfs
19
20 if [ -e unsquashfs ]; then
21 strip --strip-all unsquashfs
22 echo -e "\n========== SUCCESS ============\n"
23 else
24 echo -e "\n========== FAILED ============\n"
25 fi
26
27 if uname -a | egrep -q 'x86_64|amd64'; then
28 name=unsquashfs_64
29 elif uname -a | egrep -q 'aarch64'; then
30 name=unsquashfs_aa64
31 else
32 name=unsquashfs_32
33 fi
34
35 rm -f ../../$name
36 cp -a unsquashfs ../../$name
37