aboutsummaryrefslogtreecommitdiff
path: root/core/redo/build
blob: cfc0450aab985a0b2db43c1ba90ede943f9d442d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh -e

"${CC:=cc}" -Os -Wall -Wextra -Wwrite-strings -c -o redo.o redo.c
"$CC" -static -o redo redo.c

for file in redo redo-sources redo-targets; do
    install -Dm755 "$file" "$1/usr/bin/$file"
done

for file in redo-ifcreate redo-ifchange redo-always; do
    ln -sf redo "$1/usr/bin/$file"
done