diff --git a/build/build.php b/build/build.php index b357ab4c8a3e5..916b4bb13d274 100644 --- a/build/build.php +++ b/build/build.php @@ -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('..'); }