]> glassweightruler.freedombox.rocks Git - Ventoy.git/blob - vtoygpt/build.sh
update
[Ventoy.git] / vtoygpt / build.sh
1 #!/bin/bash
2
3 rm -f vtoytool/00/*
4
5 /opt/diet64/bin/diet -Os gcc -D_FILE_OFFSET_BITS=64 vtoygpt.c crc32.c -o vtoygpt_64
6 /opt/diet32/bin/diet -Os gcc -D_FILE_OFFSET_BITS=64 -m32 vtoygpt.c crc32.c -o vtoygpt_32
7
8 #gcc -D_FILE_OFFSET_BITS=64 -static -Wall vtoygpt.c -o vtoytool_64
9 #gcc -D_FILE_OFFSET_BITS=64 -Wall -m32 vtoygpt.c -o vtoytool_32
10
11 if [ -e vtoygpt_64 ] && [ -e vtoygpt_32 ]; then
12 echo -e '\n############### SUCCESS ###############\n'
13 mv vtoygpt_64 ../INSTALL/tool/
14 mv vtoygpt_32 ../INSTALL/tool/
15 else
16 echo -e '\n############### FAILED ################\n'
17 exit 1
18 fi
19