the Algorithm setup builds

// Change paths to application assets if the build has been started with the following parameters: // ember build --gh-pages --brunch=<brunch-to-publish-on-gh-pages>. if(process.argv.indexOf('--gh-pages')>=0){varbrunch;// Retrieve name from brunch process arguments. process.argv.forEach(function(value,index){if(value.indexOf('--brunch=')>=0){brunch=value.split('=')[1];return;}});// Change base URL to force application assets paths to be relative. ENV.baseURL='/'+ENV.repositoryName+'/'+brunch+'/';ENV.locationType='none';}