polybar-dwm/common/travis/install_xcb_xrm.sh
patrick96 3c0732ac2a fix(travis): no xrm build failure
install_xcb_xrm.sh takes advantage of the travis cache but it doesn't
actually install the libraries on the system when it finds that the
compilation has been cached.
2018-05-18 22:17:42 -07:00

21 lines
476 B
Bash
Executable File

#!/bin/bash
# Fail on error
set -e
# If the Makefile exists, we have already cached xrm
if [ ! -e "${DEPS_DIR}/xcb-util-xrm/Makefile" ]; then
git clone --recursive https://github.com/Airblader/xcb-util-xrm
fi
cd xcb-util-xrm
# Install xrm on the system
# If that doesn't work for some reason (not yet compiled, corrupt cache)
# we compile xrm and try to install it again
sudo make install || {
./autogen.sh --prefix=/usr --libdir=/usr/lib
make
sudo make install
}