Commit 90deaef1 authored by Vitaly Lipatov's avatar Vitaly Lipatov

add TOPDIR support

parent bd5105f3
...@@ -15,8 +15,9 @@ set_eterbuilddir() ...@@ -15,8 +15,9 @@ set_eterbuilddir()
else else
# if run from no system installation # if run from no system installation
# TODO: use real root dir not script dirname # TODO: use real root dir not script dirname
ETERBUILDDIR=$(realpath `dirname $0`/../share/eterbuild) [ -n "$TOPDIR" ] || TOPDIR=../
ETERBUILDETC=$(realpath `dirname $0`/../etc) ETERBUILDDIR=$(realpath `dirname $0`/$TOPDIR/share/eterbuild)
ETERBUILDETC=$(realpath `dirname $0`/$TOPDIR/etc)
if [ -r "$ETERBUILDETC/../AUTHORS" ] ; then if [ -r "$ETERBUILDETC/../AUTHORS" ] ; then
if [ -n "$VERBOSE" ] ; then if [ -n "$VERBOSE" ] ; then
echo "Note: run from source tree, datadir=$ETERBUILDDIR, sysconfdir=$ETERBUILDETC" echo "Note: run from source tree, datadir=$ETERBUILDDIR, sysconfdir=$ETERBUILDETC"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment