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

epm repack: move use_system_xdg to common.sh

parent f4bba021
......@@ -59,15 +59,6 @@ cleanup()
}
use_system_xdg()
{
# replace embedded xdg tools
for i in $PRODUCTDIR/{xdg-mime,xdg-settings} ; do
[ -s $BUILDROOT$i ] || continue
rm -v $BUILDROOT$i
ln -s /usr/bin/$(basename $i) $BUILDROOT$i
done
}
install_deps()
......
......@@ -274,6 +274,20 @@ drop_embedded_reqs()
filter_from_requires "libGLESv2.so()" "libEGL.so()" "libffmpeg.so()"
}
# by default check in $PRODUCTDIR
use_system_xdg()
{
local prod="$1"
[ -n "$prod" ] || prod="$PRODUCTDIR"
# replace embedded xdg tools
for i in $prod/{xdg-mime,xdg-settings} ; do
[ -s $BUILDROOT$i ] || continue
rm -v $BUILDROOT$i
ln -s /usr/bin/$(basename $i) $BUILDROOT$i
done
}
#[ -d "$BUILDROOT" ] || fatal "Run me only via epm repack <package>"
if [ -n "$PRODUCT" ] ; 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