1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <html>
- <body>
- <?php
- $location = $_GET['location'];
- $tagName = $_GET['tag_name'];
- $mode = $_GET['mode'];
- $version = $_GET['version'];
- //echo "$location, $tagName, $mode, $version";
- $SVN_LOCATION = "svn://firstlinkapp.com/repository/source/ios/";
- $WHOLE_TRUNK_PATH = $SVN_LOCATION . "trunk/FirstLink";
- $PREFIX_TAG_PATH = $SVN_LOCATION . "tags/";
- $path;
- if ($location == "trunk") {
- $path = $WHOLE_TRUNK_PATH;
- } else {
- $path = $PREFIX_TAG_PATH . $tagName . "/FirstLink";
- }
- $cmd = 'python build.py -p ' . $path . " -m " . $mode . " -v " . $version;
- //echo($cmd);
- //$output = shell_exec($cmd);
- //echo "<pre>$output</pre>";
- if( ($fp = popen($cmd, "r")) ) {
- while(!feof($fp) ){
- echo fread($fp, 512);
- flush();
- echo "<script> window.scrollTo(0,document.body.scrollHeight) </script>";
- }
- fclose($fp);
- }
- ?>
- </body>
- </html>
|