scripts/generate-kernel-patch: Only generate scst_itf_ver.h if needed

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5827 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2014-10-03 12:23:34 +00:00
parent c9bee3e309
commit d4c49fcd64

View File

@@ -385,7 +385,8 @@ do
add_file "${f}" "drivers/scst/${f#scst/src/}"
fi
done
if [ "$s" = "scst_03_public_headers" ]; then
if grep -q /scst_itf_ver.h scst/src/Makefile &&
[ "$s" = "scst_03_public_headers" ]; then
tmp_itf_ver="$(mktemp /tmp/scst-itf-ver.h.XXXXXXXXXX)"
cat <<"EOF" >$tmp_itf_ver
/* Autogenerated, don't edit */