Changeset 30 for trunk/update_notice.php


Ignore:
Timestamp:
Jul 14, 2017, 10:46:27 PM (7 years ago)
Author:
gegorbet
Message:

update_notice change to compare release to last package, not last committed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/update_notice.php

    r26 r30  
    55include_once "$us3bin/listen-config.php";
    66
    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;
    2112
    2213// Global variables
Note: See TracChangeset for help on using the changeset viewer.