mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
25 lines
761 B
Bash
Executable File
25 lines
761 B
Bash
Executable File
#!/bin/sh
|
||
# set -u
|
||
function error () { printf >&2 "%s\n\nPlease see README.md for build instructions.\n" "$1"; exit 1; }
|
||
|
||
# ===============================
|
||
# = Check required dependencies =
|
||
# ===============================
|
||
|
||
for hdr in boost/{crc,variant}.hpp capnp/{message,serialize-packed}.h sparsehash/dense_hash_map; do
|
||
test -f "/usr/local/include/$hdr" || error "*** dependency missing: ‘/usr/local/include/${hdr}’."
|
||
done
|
||
|
||
for dep in capnp ninja ragel multimarkdown pgrep pkill; do
|
||
which -s "$dep" || error "*** dependency missing: ‘${dep}’."
|
||
done
|
||
|
||
# ========================
|
||
# = Generate build files =
|
||
# ========================
|
||
|
||
if [[ -d "$builddir" ]];
|
||
then bin/rave -crelease -tTextMate -b"$builddir"
|
||
else bin/rave -crelease -tTextMate
|
||
fi
|