thc-hydra/hydra-gtk/make_xhydra.sh
Lukas Schwaighofer 0e6ef089db fix various spelling and typography errors
taken from Debian; the changes were authored by:
* Julián Moreno Patiño <julian@debian.org>
* Daniel Echeverry <epsilon77@gmail.com>
2017-07-26 01:22:11 +02:00

21 lines
627 B
Bash
Executable File

#!/bin/bash
PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/gnome/lib/pkgconfig
export PKG_CONFIG_PATH
echo "Trying to compile xhydra now (hydra gtk gui) - don't worry if this fails, this is really optional ..."
./configure > /dev/null 2> errors
test -e Makefile || {
echo "Error: configure wasnt happy. Analyse this:"
cat errors
exit 1
}
make > /dev/null 2> errors
test -e src/xhydra || {
echo "Error: could not compile. Analyse this:"
cat errors
echo
echo 'Do not worry, as I said, xhydra is really optional. ./hydra is ready to go!'
exit 0
}
cp -v src/xhydra ..
echo "The GTK GUI is ready, type \"./xhydra\" to start"