Changeset 30
- Timestamp:
- Jul 14, 2017, 10:46:27 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/update_notice.php
r26 r30 5 5 include_once "$us3bin/listen-config.php"; 6 6 7 // Get the US3 system release string 8 $s_url1 = "//bcf2.uthscsa.edu/ultrascan3/trunk/utils"; 9 $s_url2 = "//bcf2.uthscsa.edu/ultrascan3/trunk/programs/us"; 10 11 $s_cmd1 = "/usr/bin/svn info svn:$s_url1|grep Revision|cut -d ' ' -f2"; 12 $s_cmd2 = "/usr/bin/svn info svn:$s_url2|grep Revision|cut -d ' ' -f2"; 13 14 $s_rev1 = exec( $s_cmd1 ); 15 $s_rev2 = exec( $s_cmd2 ); 16 17 $sysrev = $s_rev2; 18 if ( $s_rev1 > $s_rev2 ) 19 $sysrev = $s_rev1; 20 $sysrev = "3.3." . $sysrev; 7 // Get the US3 system release of latest file on download site 8 $s_cmd1 = "ssh us3@ultrascan.uthscsa.edu 'ls -t /srv/www/htdocs/ultrascan3/software/*3.5*"; 9 $s_cmd1 = "$s_cmd1 | sed -n 1p | sed -e s@^.*3.5@3.5@ | cut -d. -f1-3 | sed -e s@\-setup@@" . "'"; 10 $s_cmd2 = exec( $s_cmd1 ); 11 $sysrev = $s_cmd2; 21 12 22 13 // Global variables
Note:
See TracChangeset
for help on using the changeset viewer.