Commit 87b3d6ec authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm: add EPMMODE: package, single, pipe, git

parent c185db9e
......@@ -35,7 +35,13 @@ CONFIGDIR=$PROGDIR/../etc
EPMVERSION="@VERSION@"
if [ "$EPMVERSION" = "@""VERSION""@" ] ; then
# package, single (file), pipe, git
EPMMODE="package"
[ "$SHAREDIR" = "$PROGDIR" ] && EPMMODE="single"
[ "$EPMVERSION" = "@""VERSION""@" ] && EPMMODE="git"
[ "$PROGNAME" = "" ] && EPMMODE="pipe"
if [ "$EPMMODE" = "git" ] ; then
EPMVERSION=$(head $PROGDIR/../eepm.spec | grep "^Version: " | sed -e 's|Version: ||' )
fi
......
......@@ -343,6 +343,7 @@ __epm_play_install()
epm_play()
{
[ "$EPMMODE" = "package" -o "$EPMMODE" = "git" ] || fatal "epm play is not supported in single file mode"
local psdir="$(realpath $CONFIGDIR/play.d)"
local prsdir="$(realpath $CONFIGDIR/prescription.d)"
......
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