Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

We’re showing branches in this repository, but you can also compare across forks.

base fork: joomla/joomla-cms
base: staging
...
head fork: chdemko/joomla-cms
compare: md5
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Commits on Jun 21, 2012
Christophe Demko chdemko Adding MD5SUM to css/js/images folders 9271935
Commits on Jun 25, 2012
Christophe Demko chdemko Merging 51a9cc3
Showing with 33 additions and 24 deletions.
  1. +33 −24 build/build.php
57 build/build.php
View
@@ -54,6 +54,10 @@
chdir($repo);
system($gitPath . ' archive ' . $full . ' | tar -x -C ' . $fullpath);
+echo "Create MD5SUM.\n";
+chdir($fullpath);
+system('for folder in `find -type d -regex \'\\./\\(\\(administrator/\\)?templates\\|media\\)/.*/\\(css\\|js\\|images\\).*\'`; do find $folder -maxdepth 1 -type f -exec md5sum {} + | awk \'{print $1}\' | sort | md5sum | awk \'{printf("%s", $1)}\' > $folder/MD5SUM; done');
+
chdir($tmp);
system('mkdir diffdocs');
@@ -71,26 +75,26 @@
// So we add the index file for each top-level directory.
// Note: If we add new top-level directories or files, be sure to include them here.
$filesArray = array(
- "administrator/index.php\n" => true,
- "cache/index.html\n" => true,
- "cli/index.html\n" => true,
- "components/index.html\n" => true,
- "images/index.html\n" => true,
- "includes/index.html\n" => true,
- "language/index.html\n" => true,
- "libraries/index.html\n" => true,
- "logs/index.html\n" => true,
- "media/index.html\n" => true,
- "modules/index.html\n" => true,
- "plugins/index.html\n" => true,
- "templates/index.html\n" => true,
- "tmp/index.html\n" => true,
- "htaccess.txt\n" => true,
+ "administrator/index.php\n" => true,
+ "cache/index.html\n" => true,
+ "cli/index.html\n" => true,
+ "components/index.html\n" => true,
+ "images/index.html\n" => true,
+ "includes/index.html\n" => true,
+ "language/index.html\n" => true,
+ "libraries/index.html\n" => true,
+ "logs/index.html\n" => true,
+ "media/index.html\n" => true,
+ "modules/index.html\n" => true,
+ "plugins/index.html\n" => true,
+ "templates/index.html\n" => true,
+ "tmp/index.html\n" => true,
+ "htaccess.txt\n" => true,
"web.config.txt\n" => true,
- "robots.txt\n" => true,
- "LICENSE.txt\n" => true,
- "README.txt\n" => true,
- "index.php\n" => true,
+ "robots.txt\n" => true,
+ "LICENSE.txt\n" => true,
+ "README.txt\n" => true,
+ "index.php\n" => true,
"joomla.xml\n" => true,
);
@@ -103,6 +107,11 @@
$command = $gitPath . ' diff tags/'. $previousTag . ' tags/' . $full . ' --name-status > diffdocs/'.$version.'.'.$num;
system($command);
+ // Add MD5SUM files
+ chdir($fullpath);
+ system('find . -name MD5SUM -exec echo -e A"\\t"{} >> ' . $tmp . '/diffdocs/' . $version . '.' . $num . ' \;');
+ chdir($tmp);
+
// $newfile will hold the array of files to include in diff package
$deletedFiles = array();
$files = file('diffdocs/'.$version.'.'.$num);
@@ -132,10 +141,10 @@
file_put_contents('diffconvert/'.$version.'.'.$num, implode("", $filePut));
file_put_contents('diffconvert/'.$version.'.'.$num.'-deleted', $deletedFiles);
- // Only create archives for 0 and most recent versions. Skip other update versions.
- if ($num != 0 && ($num != $release - 1)) {
- echo "Skipping create archive for version $version.$num\n";
- continue;
+ // Only create archives for 0 and most recent versions. Skip other update versions.
+ if ($num != 0 && ($num != $release - 1)) {
+ echo "Skipping create archive for version $version.$num\n";
+ continue;
}
// Create the diff archive packages using the file name list.
@@ -168,4 +177,4 @@
system('rm -r installation');
system('zip -r ../packages_full'.$full.'/Joomla_'.$full.'-Stable-Update_Package.zip * > /dev/null');
-echo "Build of version $full complete!\n";
+echo "Build of version $full complete!\n";

No commit comments for this range

Something went wrong with that request. Please try again.