aboutsummaryrefslogtreecommitdiffstats
path: root/build.sh
diff options
context:
space:
mode:
authorTharre <tharre3@gmail.com>2014-07-29 00:51:25 +0200
committerTharre <tharre3@gmail.com>2014-07-29 00:52:01 +0200
commit754ab792e43ab4b95350fee2f5e841186af13653 (patch)
treeec9b81f09fe4bf93c57ec5dde963d29e8f156a57 /build.sh
parentcabc74b6a557705043e248ebdbd969ebcc247311 (diff)
downloadredo-754ab792e43ab4b95350fee2f5e841186af13653.tar.gz
redo-754ab792e43ab4b95350fee2f5e841186af13653.tar.xz
redo-754ab792e43ab4b95350fee2f5e841186af13653.zip
Add filepath.c, refactor out parse_shebang() and rewrite most of the error checking code to use predefined error macros
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh10
1 files changed, 7 insertions, 3 deletions
diff --git a/build.sh b/build.sh
index 6bc4fc4..072ea88 100755
--- a/build.sh
+++ b/build.sh
@@ -1,11 +1,15 @@
-#!/bin/sh -e
+#!/bin/sh -ex
. out/config.sh
$CC $CFLAGS -o out/util.o -c src/util.c
$CC $CFLAGS -o out/build.o -c src/build.c
+$CC $CFLAGS -o out/filepath.o -c src/filepath.c
$CC $CFLAGS -o out/redo.o -c src/redo.c
$CC $CFLAGS -o out/redo-ifchange.o -c src/redo-ifchange.c
-$CC -o out/redo out/redo.o out/util.o out/build.o $LDFLAGS
-$CC -o out/redo-ifchange out/redo-ifchange.o out/util.o out/build.o $LDFLAGS
+$CC -o out/redo out/redo.o out/util.o out/build.o out/filepath.o $LDFLAGS
+$CC -o out/redo-ifchange out/redo-ifchange.o out/util.o out/build.o out/filepath.o $LDFLAGS
+
+# TODO: just for convenience, should be removed as soon as redo can build itself
+sudo install out/redo out/redo-ifchange /usr/bin/
echo "Finished compiling"