Commit c0845f5f authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm repack common.sh remove_dir(): more correct removing

parent 860ba0dc
......@@ -85,9 +85,22 @@ remove_dir()
echo "Removing $file dir ..."
rm -r "$BUILDROOT$file/"
subst "s|.*$file/.*||" $SPEC
subst "s|.*$file\"$||" $SPEC
subst "s|.*$file$||" $SPEC
# %dir "/icons/"
subst "s|^%dir $file/*$||" $SPEC
subst "s|^%dir \"$file/*\"$||" $SPEC
# %dir "/icons/some..."
subst "s|^%dir $file/.*$||" $SPEC
subst "s|^%dir \"$file/.*\"$||" $SPEC
# "/icons/"
subst "s|^$file/*$||" $SPEC
subst "s|^\"$file/*\"$||" $SPEC
# "/icons/some..."
subst "s|^$file/.*||" $SPEC
subst "s|^\"$file/.*\"$||" $SPEC
subst "s|^\(%config.*\) $file$||" $SPEC
subst "s|^\(%config.*\) \"$file\"$||" $SPEC
subst "s|^\(%config.*\) $file/.*||" $SPEC
subst "s|^\(%config.*\) \"$file/.*\"$||" $SPEC
}
has_space()
......
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