(svn r17220) -Fix (r15027): don't ignore white space changes (e.g. alignment fixes) in the exporter

This commit is contained in:
rubidium 2009-08-19 14:48:51 +00:00
parent c463176a9c
commit 46d5fc5565
6 changed files with 20 additions and 20 deletions

View File

@ -24,7 +24,7 @@ if [ -z "$1" ]; then
"ai_controller.hpp" | "ai_object.hpp" | "ai_types.hpp" | "ai_changelog.hpp" ) continue; "ai_controller.hpp" | "ai_object.hpp" | "ai_types.hpp" | "ai_changelog.hpp" ) continue;
esac esac
${AWK} -f squirrel_export.awk ${f} > ${f}.tmp ${AWK} -f squirrel_export.awk ${f} > ${f}.tmp
if ! [ -f "${f}.sq" ] || [ -n "`diff -I '$Id' -b ${f}.tmp ${f}.sq 2> /dev/null || echo boo`" ]; then if ! [ -f "${f}.sq" ] || [ -n "`diff -I '$Id' ${f}.tmp ${f}.sq 2> /dev/null || echo boo`" ]; then
mv ${f}.tmp ${f}.sq mv ${f}.tmp ${f}.sq
echo "Updated: ${f}.sq" echo "Updated: ${f}.sq"
svn add ${f}.sq > /dev/null 2>&1 svn add ${f}.sq > /dev/null 2>&1
@ -36,7 +36,7 @@ if [ -z "$1" ]; then
done done
else else
${AWK} -f squirrel_export.awk $1 > $1.tmp ${AWK} -f squirrel_export.awk $1 > $1.tmp
if ! [ -f "${f}.sq" ] || [ -n "`diff -I '$Id' -b $1.sq $1.tmp 2> /dev/null || echo boo`" ]; then if ! [ -f "${f}.sq" ] || [ -n "`diff -I '$Id' $1.sq $1.tmp 2> /dev/null || echo boo`" ]; then
mv $1.tmp $1.sq mv $1.tmp $1.sq
echo "Updated: $1.sq" echo "Updated: $1.sq"
svn add $1.sq > /dev/null 2>&1 svn add $1.sq > /dev/null 2>&1
@ -99,7 +99,7 @@ echo "
${AWK} -f ${f}.awk ${f} > ${f}.tmp ${AWK} -f ${f}.awk ${f} > ${f}.tmp
if ! [ -f "${f}" ] || [ -n "`diff -I '$Id' -b ${f} ${f}.tmp 2> /dev/null || echo boo`" ]; then if ! [ -f "${f}" ] || [ -n "`diff -I '$Id' ${f} ${f}.tmp 2> /dev/null || echo boo`" ]; then
mv ${f}.tmp ${f} mv ${f}.tmp ${f}
echo "Updated: ${f}" echo "Updated: ${f}"
else else