Commit 9a02adea authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm repack.d/generic-default.sh: move to /opt any one dir archive

parent 57dd6209
......@@ -15,6 +15,14 @@ if [ ! -f "$BUILDROOT$PRODUCTDIR/.bundle.yml" ] ; then
add_libs_requires
fi
pd="$(echo $BUILDROOT/*)"
if [ -d "$pd" ] ; then
bn="$(basename "$pd")"
if [ "$bn" != "usr" ] && [ "$bn" != "opt" ] ; then
move_to_opt "/$bn"
fi
fi
# FIXME: hack for nonstandart name
pd="$(echo $BUILDROOT/opt/*)"
[ -d "$pd" ] && PRODUCTDIR="/opt/$(basename "$pd")"
......
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