repo.or.cz
/
k8sterm.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
small fixes to tabbar updating
[k8sterm.git]
/
0build.sh
blob
df0a2af13d9afb2c2a78c1d583b25509be1a6285
1
#!/bin/sh
2
3
if
[
"z
$CC
"
=
"z"
];
then
4
CC
=
gcc
5
fi
6
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`
14
fi
15
fi
16
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