aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2010-02-27 21:19:43 +0000
committerNils Adermann <naderman@naderman.de>2010-02-27 21:19:43 +0000
commite5c6cac09a13498aec3649ca0ea8324055381d55 (patch)
tree732b82b4ecc4508dd8491c62ec705db71274df8e /build
parentbba33ead30a243a6df1377b2ae0fa56337bacc7c (diff)
downloadforums-e5c6cac09a13498aec3649ca0ea8324055381d55.tar
forums-e5c6cac09a13498aec3649ca0ea8324055381d55.tar.gz
forums-e5c6cac09a13498aec3649ca0ea8324055381d55.tar.bz2
forums-e5c6cac09a13498aec3649ca0ea8324055381d55.tar.xz
forums-e5c6cac09a13498aec3649ca0ea8324055381d55.zip
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_0@10549 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'build')
-rwxr-xr-xbuild/compare.sh39
-rwxr-xr-xbuild/package.php5
2 files changed, 44 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
+
diff --git a/build/package.php b/build/package.php
index 50a9e76ab7..0620d4c6c2 100755
--- a/build/package.php
+++ b/build/package.php
@@ -518,4 +518,9 @@ foreach ($compress_programs as $extension => $compress_command)
$package->run_command('md5sum ./release_files/' . $package->get('release_filename') . '.' . $extension . ' > ./release_files/' . $package->get('release_filename') . '.' . $extension . '.md5');
}
+// verify results
+chdir($package->locations['root']);
+$package->begin_status('********** Verifying packages **********');
+$package->run_command('./compare.sh ' . $package->package_infos['release_filename']);
+
echo "Done.\n";