| git.druid.rocks | index | druid520 | ports | ports/ | shells/ | dash/ | add.sh |
ports/shells/dash/add.sh
set -e
git clone git://git.kernel.org/pub/scm/utils/dash/dash.git
cd dash
# libtoolize can deposit ltmain.sh one directory UP from the checkout
# here (an mp staging quirk: the checkout dir shares its parent's name,
# which seems to confuse libtoolize's aux-dir heuristic), while automake
# looks for it at ./ltmain.sh, failing outright -- copying it into place
# first works around it.
autoreconf -fi || { cp ../ltmain.sh . 2>/dev/null && autoreconf -fi; }
./configure CC="${CC:-cc}" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" --prefix=$MP_PREFIX
make -j$MP_JOBS
make install
make clean || true