small fixes to tabbar updating
[k8sterm.git] / 0build.sh
blobdf0a2af13d9afb2c2a78c1d583b25509be1a6285
1 #!/bin/sh
3 if [ "z$CC" = "z" ]; then
4 CC=gcc
5 fi
7 GIT_VERSION="unknown"
8 GIT=`which git`
9 if [ "z$GIT" != "z" ]; then
10 test -d .git
11 ress=$?
12 if [ "z$ress" = "z0" ]; then
13 GIT_VERSION=`$GIT describe --abbrev=16 --dirty --always`
17 $CC \
18 -o sterm \
19 -Os -march=native -mtune=native \
20 -s \
21 -Wall \
22 -std=gnu99 \
23 -lutil -lrt -lX11 \
24 -DGIT_VERSION=\"$GIT_VERSION\" \
25 src/sterm.c