aboutsummaryrefslogtreecommitdiffstats
path: root/build/compare.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build/compare.sh')
-rwxr-xr-xbuild/compare.sh39
1 files changed, 39 insertions, 0 deletions
diff --git a/build/compare.sh b/build/compare.sh
new file mode 100755
index 0000000000..df442fd4c7
--- /dev/null
+++ b/build/compare.sh
@@ -0,0 +1,39 @@
+#!/usr/bin/env bash
+orig_dir="../../phpBB"
+
+
+rm -rf test_release_files
+mkdir test_release_files
+cd test_release_files
+
+for ext in "tar.bz2" "zip"
+do
+ cp "../new_version/release_files/$1.$ext" ./
+
+ if [ "$ext" = "tar.bz2" ]
+ then
+ command="tar -xjf"
+ else
+ command="unzip -q"
+ fi
+
+ $command "$1.$ext"
+
+ for file in `find phpBB3 -name '.svn' -prune -o -type f -print`
+ do
+ orig_file="${file/#phpBB3/$orig_dir}"
+ diff_result=`diff $orig_file $file`
+
+ if [ -n "$diff_result" ]
+ then
+ echo "Difference in package $1.$ext"
+ echo $diff_result
+ fi
+ done
+
+ rm -rf phpBB3
+done
+
+cd ..
+rm -rf test_release_files
+