Commit f91e3029 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm repack generic.sh: don't drop quotes anymore

parent e973619d
...@@ -16,14 +16,18 @@ SUBGENERIC="$5" ...@@ -16,14 +16,18 @@ SUBGENERIC="$5"
# [ -d "$i" ] && [ -n "$verbose" ] && echo "drop dir $i from packing, it exists in the system" # [ -d "$i" ] && [ -n "$verbose" ] && echo "drop dir $i from packing, it exists in the system"
#done #done
# TODO: drop it, it breaks packages with spaces in paths # replace dir "/path/dir" -> %dir "/path/dir"
# replace dir "/path/dir" -> %dir /path/dir
grep '^"/' $SPEC | sed -e 's|^"\(/.*\)"$|\1|' | while read i ; do grep '^"/' $SPEC | sed -e 's|^"\(/.*\)"$|\1|' | while read i ; do
# add dir as %dir in the filelist # add dir as %dir in the filelist
if [ -d "$BUILDROOT$i" ] && [ ! -L "$BUILDROOT$i" ] ; then if [ -d "$BUILDROOT$i" ] && [ ! -L "$BUILDROOT$i" ] ; then
subst "s|^\(\"$i\"\)$|%dir \1|" $SPEC subst "s|^\(\"$i\"\)$|%dir \"\1\"|" $SPEC
#else fi
# subst 's|^\("'$i'"\)$|\1|' $spec done
grep '^/' $SPEC | while read i ; do
# add dir as %dir in the filelist
if [ -d "$BUILDROOT$i" ] && [ ! -L "$BUILDROOT$i" ] ; then
subst "s|^\($i\)$|%dir \1|" $SPEC
fi fi
done done
......
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