Commit 0f09811d authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm repack common.sh: set PRODUCT by default (from the script name)

parent e2cedcb9
......@@ -302,12 +302,13 @@ use_system_xdg()
#[ -d "$BUILDROOT" ] || fatal "Run me only via epm repack <package>"
if [ -n "$PRODUCT" ] ; then
[ -n "$PRODUCTCUR" ] || PRODUCTCUR="$PRODUCT"
[ -n "$PRODUCTDIR" ] || PRODUCTDIR="/opt/$PRODUCTCUR"
[ -n "$PRODUCT" ] || PRODUCT="$(basename $0 .sh)"
[ -n "$PRODUCTCUR" ] || PRODUCTCUR="$PRODUCT"
[ -n "$PRODUCTDIR" ] || PRODUCTDIR="/opt/$PRODUCTCUR"
[ -d "$BUILDROOT$PRODUCTDIR" ] && pack_dir "$PRODUCTDIR"
[ -d "$BUILDROOT$PRODUCTDIR" ] && pack_dir "$PRODUCTDIR"
fi
# like /opt/yandex/browser
if [ -n "$PRODUCTDIR" ] && [ "$(dirname "$PRODUCTDIR" )" != "/" ] && [ "$(dirname "$(dirname "$PRODUCTDIR" )" )" != "/" ] ; then
......
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