Commit ea405cc4 ea405cc42dc61fce135385f456a6f1c1a17ec0be by Sergey Poznyakoff

(cp_mark_as_generated): Create target directory if needed.

1 parent 5a511af3
......@@ -367,6 +367,11 @@ cp_mark_as_generated()
*) c1= ; c2= ;;
esac
dst_dir=`dirname "$cp_dst"`
if ! test -d "$dst_dir"; then
mkdir -p "$dst_dir"
fi
if test -z "$c1"; then
cmp -s "$cp_src" "$cp_dst" || {
echo "$0: cp -f $cp_src $cp_dst" &&
......