1
0
mirror of https://github.com/aolofsson/oh.git synced 2025-01-17 20:02:53 +08:00
oh/scripts/configure

13 lines
352 B
Plaintext
Raw Normal View History

#!/bin/bash
if ! which vivado 1>/dev/null; then
echo ERROR: Vivado not in PATH
echo 'Try "source /opt/Xilinx/Vivado/201X.X/settings.sh"'
exit 1
fi
top_srcdir=$(dirname $(readlink -f "$0"))
top_builddir=$(pwd)
sed "s|@top_srcdir@|${top_srcdir}|g;s|@top_builddir@|${top_builddir}|g" \
< $top_srcdir/Makefile.in > $top_builddir/Makefile