Commit ba4a316f authored by Vitaly Lipatov's avatar Vitaly Lipatov

move play files to play.d

parent d9997415
......@@ -73,8 +73,7 @@ __epm_play_run()
epm_play()
{
# TODO: change to play.d
local psdir="$CONFIGDIR/prescription.d"
local psdir="$CONFIGDIR/play.d"
if [ "$1" = "-h" ] || [ "$1" = "--help" ] ; then
cat <<EOF
......
Allowed variables:
* $EGET (wget like utility)
* $DISTRVENDOR (distro_info utility)
Allowed command:
* epm (run the same epm called from)
TODO:
* inject some functions
TODO:
* save packages for remove
#!/bin/sh
fatal()
{
echo "FATAL: $*" >&2
exit 1
}
if [ "$1" = "--remove" ] ; then
epm remove $PKGNAME
exit
fi
if [ "$1" = "--installed" ] ; then
epm installed $PKGNAME
exit
fi
if [ -n "$DESCRIPTION" ] ; then
[ "$1" != "--run" ] && echo "$DESCRIPTION" && exit
fi
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