aboutsummaryrefslogtreecommitdiffstats
path: root/build/compare.sh
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2010-02-27 22:08:43 +0000
committerNils Adermann <naderman@naderman.de>2010-02-27 22:08:43 +0000
commit33de245e6493df2047ac2776692a8e228002135c (patch)
tree3c6000427ba83fdf4a56bcd6c6775674146937c0 /build/compare.sh
parent1d098379d93da8b676b0c610442afd77a38517a7 (diff)
downloadforums-33de245e6493df2047ac2776692a8e228002135c.tar
forums-33de245e6493df2047ac2776692a8e228002135c.tar.gz
forums-33de245e6493df2047ac2776692a8e228002135c.tar.bz2
forums-33de245e6493df2047ac2776692a8e228002135c.tar.xz
forums-33de245e6493df2047ac2776692a8e228002135c.zip
Merge r10549 into 3.0.7: After generating all packages go through the full installs and make sure the files do not contain any errors [Bug #58255]
3.0.7-RC2 contains an image file missing one byte (icon_textbox_search.gif) you can take it from an previous phpBB3 release, it was not changed. git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_7@10550 89ea8834-ac86-4346-8a33-228a782c2dd0
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
+