Linux file watcher: make script fixed

This commit is contained in:
Roman Shevchenko
2012-07-17 17:50:23 +02:00
parent 91e3a7968d
commit 9761a280a4

View File

@@ -1,5 +1,7 @@
#!/bin/sh
echo "compiling 32-bit version"
clang -m32 -O2 -Wall -std=c99 -D_BSD_SOURCE -D_XOPEN_SOURCE=500 -o fsnotifier main.c inotify.c util.c
echo "compiling 64-bit version"
clang -m64 -O2 -Wall -std=c99 -D_BSD_SOURCE -D_XOPEN_SOURCE=500 -o fsnotifier64 main.c inotify.c util.c
if [ $? -eq 0 ] ; then
echo "compiling 64-bit version"
clang -m64 -O2 -Wall -std=c99 -D_BSD_SOURCE -D_XOPEN_SOURCE=500 -o fsnotifier64 main.c inotify.c util.c
fi