Commit 102f841e authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm repack.d/common.sh: add remove_dir function

parent a89c5002
......@@ -10,6 +10,15 @@ remove_file()
subst "s|.*$file.*||" $SPEC
}
remove_dir()
{
local file="$1"
[ -d "$BUILDROOT$file" ] || return
rm -rv "$BUILDROOT$file"
subst "s|.*$file.*||" $SPEC
}
# Usage: pack_file <path_to_file>
pack_file()
......
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