stac

simple static site generator
git clone git://git.kocotian.pl/stacinhtml.git
Log | Files | Refs | README | LICENSE

commit d1c1e49dd00046dbb65470f78f7b7d461e3750e7
parent e563d2fcf174317526bc100c4351a7949cf3ab80
Author: kocotian <kocotian@kocotian.pl>
Date:   Fri,  6 Aug 2021 11:38:11 +0000

stac script updates

Diffstat:
Mstac | 14+++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/stac b/stac @@ -2,12 +2,16 @@ CC=gcc -make generator > /dev/null +make generator > /dev/null || exit 1 -./compile $@ > /tmp/stac.$$.c && - ${CC} /tmp/stac.$$.c -o /tmp/stac.$$ -Iinclude -I. \ - util.o assemble.o str.o libstac/libstac.o && - /tmp/stac.$$ +./compile $@ > /tmp/stac.$$.c || exit 1 +${CC} /tmp/stac.$$.c -o /tmp/stac.$$ -Iinclude -I. \ + util.o assemble.o str.o libstac/libstac.o || { + rm /tmp/stac.$$.c + exit 1 +} rm /tmp/stac.$$.c + +/tmp/stac.$$ rm /tmp/stac.$$