Changeset 1919
- Timestamp:
- 4/16/2010 7:07:27 AM (3 years ago)
- File:
-
- 1 edited
-
trunk/website/scripts/BuildPublish.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/website/scripts/BuildPublish.php
r1917 r1919 8 8 9 9 if (count($argv) < 4) 10 die('There are insufficient arguments for BuildPublish.php.' . "\n\n" . 'Usage: BuildPublish.php <branch name> <revision> <installer>'); 10 { 11 echo 'There are insufficient arguments for BuildPublish.php.' . "\n\n" . 12 'Usage: BuildPublish.php <branch name> <revision> <installer>'; 13 exit(1); 14 } 11 15 12 16 require_once('Credentials.php'); … … 58 62 $file = fopen($argv[3], 'rb'); 59 63 if (!$file) 60 die('The file ' . $argv[3] . ' could not be opened for reading.'); 64 { 65 echo 'The file ' . $argv[3] . ' could not be opened for reading.'; 66 exit(1); 67 } 61 68 62 69 try … … 65 72 $branches = BuildBranch::Get(); 66 73 if (!array_key_exists($argv[1], $branches)) 67 die('The branch ' . $argv[1] . ' does not exist.');74 throw new Exception('The branch ' . $argv[1] . ' does not exist.'); 68 75 69 76 define('SHELL_WEB_ROOT', 'sftp://web.sourceforge.net/home/groups/e/er/eraser/htdocs'); … … 103 110 catch (Exception $e) 104 111 { 105 die($e->getMessage()); 112 echo $e->getMessage(); 113 exit(1); 106 114 } 107 115
Note: See TracChangeset
for help on using the changeset viewer.
