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

epm repack: introduce PRODUCTBASEDIR and fill it automatically

parent 7d20ae73
...@@ -250,7 +250,7 @@ drop_embedded_reqs() ...@@ -250,7 +250,7 @@ drop_embedded_reqs()
filter_from_requires "libGLESv2.so()" "libEGL.so()" "libffmpeg.so()" filter_from_requires "libGLESv2.so()" "libEGL.so()" "libffmpeg.so()"
} }
[ -d "$BUILDROOT" ] || fatal "Run me only with epm repack <package>" #[ -d "$BUILDROOT" ] || fatal "Run me only via epm repack <package>"
if [ -n "$PRODUCT" ] ; then if [ -n "$PRODUCT" ] ; then
[ -n "$PRODUCTCUR" ] || PRODUCTCUR="$PRODUCT" [ -n "$PRODUCTCUR" ] || PRODUCTCUR="$PRODUCT"
...@@ -258,3 +258,10 @@ if [ -n "$PRODUCT" ] ; then ...@@ -258,3 +258,10 @@ if [ -n "$PRODUCT" ] ; then
[ -d "$BUILDROOT$PRODUCTDIR" ] && pack_dir "$PRODUCTDIR" [ -d "$BUILDROOT$PRODUCTDIR" ] && pack_dir "$PRODUCTDIR"
fi fi
# like /opt/yandex/browser
if [ -n "$PRODUCTDIR" ] && [ "$(dirname "$PRODUCTDIR" )" != "/" ] && [ "$(dirname "$(dirname "$PRODUCTDIR" )" )" != "/" ] ; then
[ -n "$PRODUCTBASEDIR" ] || PRODUCTBASEDIR="$(dirname "$PRODUCTDIR")"
fi
[ -d "$BUILDROOT$PRODUCTBASEDIR" ] && pack_dir "$PRODUCTBASEDIR"
...@@ -4,7 +4,7 @@ BUILDROOT="$1" ...@@ -4,7 +4,7 @@ BUILDROOT="$1"
SPEC="$2" SPEC="$2"
PRODUCT="$3" PRODUCT="$3"
# firstly, pack /opt/$PRODUCT if used # firstly, pack $PRODUCTDIR if used
. $(dirname $0)/common.sh . $(dirname $0)/common.sh
flag_python3='' flag_python3=''
......
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