Skip to content

Commit

Permalink
Fix build to use "x" in update packages (instead of "0").
Browse files Browse the repository at this point in the history
  • Loading branch information
dextercowley committed Feb 4, 2013
1 parent 183fdd9 commit 14f6bdd
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions build/build.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,14 @@

continue;
}


$fromName = $num == 0 ? 'x' : $num;
// Create the diff archive packages using the file name list.
system('tar --create --bzip2 --no-recursion --directory '.$full.' --file packages'.$version.'/Joomla_'.$version.'.'.$num.'_to_'.$full.'-Stable-Patch_Package.tar.bz2 --files-from diffconvert/'.$version.'.'.$num . '> /dev/null');
system('tar --create --gzip --no-recursion --directory '.$full.' --file packages'.$version.'/Joomla_'.$version.'.'.$num.'_to_'.$full.'-Stable-Patch_Package.tar.gz --files-from diffconvert/'.$version.'.'.$num . '> /dev/null');
system('tar --create --bzip2 --no-recursion --directory '.$full.' --file packages'.$version.'/Joomla_'.$version.'.'.$fromName.'_to_'.$full.'-Stable-Patch_Package.tar.bz2 --files-from diffconvert/'.$version.'.'.$num . '> /dev/null');
system('tar --create --gzip --no-recursion --directory '.$full.' --file packages'.$version.'/Joomla_'.$version.'.'.$fromName.'_to_'.$full.'-Stable-Patch_Package.tar.gz --files-from diffconvert/'.$version.'.'.$num . '> /dev/null');

chdir(''.$full);
system('zip ../packages'.$version.'/Joomla_'.$version.'.'.$num.'_to_'.$full.'-Stable-Patch_Package.zip -@ < ../diffconvert/'.$version.'.'.$num . '> /dev/null');
system('zip ../packages'.$version.'/Joomla_'.$version.'.'.$fromName.'_to_'.$full.'-Stable-Patch_Package.zip -@ < ../diffconvert/'.$version.'.'.$num . '> /dev/null');
chdir('..');
}

Expand Down

0 comments on commit 14f6bdd

Please sign in to comment.