diff options
| author | Michael Forney <mforney@mforney.org> | 2016-11-19 00:51:55 -0800 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2016-11-19 01:57:05 -0800 |
| commit | 4bfd73f8c5ba63018359e5773d6dc4a84397bc51 (patch) | |
| tree | 2402d07a12661f83fc60891650b834019156d653 | |
| parent | 8033c67785966891877e6cbb6ff53a89f1dd698f (diff) | |
st: Install terminfo
| -rw-r--r-- | desktop/st/gen.rc | 7 | ||||
| -rw-r--r-- | extra/ncurses/gen.rc | 1 | ||||
| -rw-r--r-- | rules.ninja | 3 |
3 files changed, 10 insertions, 1 deletions
diff --git a/desktop/st/gen.rc b/desktop/st/gen.rc index 0a8f562c..da765ef5 100644 --- a/desktop/st/gen.rc +++ b/desktop/st/gen.rc @@ -21,4 +21,11 @@ exe st -d 'phony/$dir/deps' st.c '$builddir'/^(\ file bin/st '$outdir'/st 755 file share/man/man1/st.1 '$srcdir'/st.1 644 +terminfo=s/^(st st-256color) +terminfo_outs='$outdir'/$terminfo +build $"terminfo_outs tic '$srcdir'/st.info ; with\ + ticflags '-x -o $outdir' +for(t in $terminfo) + file share/terminfo/$t '$outdir'/$t 644 + fetch git diff --git a/extra/ncurses/gen.rc b/extra/ncurses/gen.rc index 75377544..85a489e3 100644 --- a/extra/ncurses/gen.rc +++ b/extra/ncurses/gen.rc @@ -109,7 +109,6 @@ terminfo=`{printf %s\n $terms | awk '{print substr($0, 1, 1) "/" $0}'} termnames=`{printf ,%s $terms | tail -c +1} terminfo_outs='$outdir'/terminfo/$terminfo -rule tic 'tic $ticflags $in' build $"terminfo_outs tic '$srcdir'/misc/terminfo.src ; ticflags=(\ -o '$outdir'/terminfo\ -e $termnames\ diff --git a/rules.ninja b/rules.ninja index 89842b63..27cf1219 100644 --- a/rules.ninja +++ b/rules.ninja @@ -53,6 +53,9 @@ rule sed rule awk command = awk $expr $in >$out.tmp && mv $out.tmp $out +rule tic + command = tic $ticflags $in + rule waylandproto command = wayland-scanner $type $in $out.tmp && mv $out.tmp $out |
