Mercurial > ~mikael > mcabber > hg
view mcabber/hgcset.sh @ 2269:766666eb6928
Link with the tinfo library
On some systems we have to explicitly link with libtinfo.
pkg-config cannot be used on every system with ncurses,
see discussion in https://bugs.gentoo.org/show_bug.cgi?id=457530#c18
For now we'll use the same fix as Mutt:
https://dev.mutt.org/hg/mutt/rev/c84aa0d62ce3
Thanks to Wolfram Schlich for the report and troubleshooting!
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Mon, 12 Sep 2016 22:39:04 +0200 |
parents | e8f2db654e67 |
children |
line wrap: on
line source
#! /bin/sh srcdir="$1" builddir="$2" if [ ! -f "$srcdir/logprint.h" ]; then echo "Unable to find mcabber sources!" >&2 exit 1 fi cd "$srcdir" if which hg > /dev/null 2>&1; then cs=$(hg id 2> /dev/null | cut -d' ' -f1) if test $? -eq 0; then if [ x"$cs" != x ]; then grep -q "$cs" "$builddir/hgcset.h" > /dev/null 2>&1 || \ echo "#define HGCSET \"$cs\"" > "$builddir/hgcset.h" exit 0 fi fi fi echo > "$builddir/hgcset.h"