[SOFTX86]
[reactos.git] / lib / 3rdparty / softx86 / autodetect_nasm.sh
1 # /bin/sh
2
3 nasm >/dev/null
4
5 if [[ "$?" == "0" || "$?" == "1" ]]; then
6 echo "all: samples_all" >samples/Makefile.nasm
7 echo "NASM=nasm" >>samples/Makefile.nasm
8 else
9 echo "#nothing to do here" >samples/Makefile.nasm
10 echo "all:" >>samples/Makefile.nasm
11 echo -n -e "\t" >>samples/Makefile.nasm
12 echo "echo You do not have NASM... skipping sample build" >>samples/Makefile.nasm
13 fi
14