From: Roland Mas Date: Thu, 17 Nov 2011 19:53:00 +0000 (+0000) Subject: Added script to compare two SQL dumps X-Git-Tag: v5_2_rc1~443 X-Git-Url: https://scm.fusionforge.org/anonscm/gitweb?p=fusionforge%2Ffusionforge.git;a=commitdiff_plain;h=de4539135a9f732c8c1fc218a89acaad8dcbb7de;hp=167a0d1ca3bd5fb6b3ba1a85a6e345753b3f49da Added script to compare two SQL dumps --- diff --git a/.gitattributes b/.gitattributes index dc1e581b6a..89e7471965 100644 --- a/.gitattributes +++ b/.gitattributes @@ -4744,6 +4744,7 @@ src/translations/th.po -text src/translations/zh_CN.po -text src/translations/zh_TW.po -text src/utils/apply-coding-style.sh -text +src/utils/compare-sql-dumps.sh -text src/utils/createplugin.sh -text svneol=unset#text/x-sh src/utils/cvs1/cvscreate.sh svneol=native#text/x-sh src/utils/cvs1/cvstar_genlist.pl svneol=native#text/x-perl diff --git a/src/utils/compare-sql-dumps.sh b/src/utils/compare-sql-dumps.sh new file mode 100755 index 0000000000..f0cf1efbb4 --- /dev/null +++ b/src/utils/compare-sql-dumps.sh @@ -0,0 +1,13 @@ +#! /bin/bash + +for i in src/utils utils ../src/utils ../utils ; do + if [ -e $i/filter-sql-dump.php ] ; then + s=$i/filter-sql-dump.php + fi +done +if [ "$s" = "" ] ; then + echo "Couldn't find filter script..." + exit 1 +fi + +diff -b -u50 <($s $1) <($s $2)