Changeset 4138

Show
Ignore:
Timestamp:
06/08/07 14:06:01 (6 years ago)
Author:
bhilburn
Message:

Improved / further developed the auto-RPM script.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • experimental/installation/scripts/ossie-packager.sh

    r4137 r4138  
    7777fi 
    7878 
    79 # Prepare the RPM spec files 
    80 GPP_version=`awk "/Version:/" ${default_GPP_node_spec}` 
     79# Parse the current version numbers out of the file 
     80GPP_version=`awk "/Version:/" ${GPP_spec}` 
    8181ossie_cf_version=`awk "/Version:/" ${ossie_cf_spec}` 
    8282standard_interfaces_version=`awk "/Version:/" ${standard_interfaces_spec}` 
     
    8686nodebooter_version=`awk "/Version:/" ${nodebooter_spec}` 
    8787 
    88 printf "Please enter the version of the GPP [%s]: " $GPP_version 
    89 printf "Please enter the version of the OSSIE CF [%s]: " $GPP_version 
    90 printf "Please enter the version of standardInterfaces [%s]: " $GPP_version 
    91 printf "Please enter the version of WaveDev [%s]: " $GPP_version 
    92 printf "Please enter the version of the default GPP node [%s]: " $GPP_version 
    93 printf "Please enter the version of the domain [%s]: " $GPP_version 
    94 printf "Please enter the version of nodebooter [%s]: " $GPP_version 
     88printf "\nWe now need to set the version number for each of the software 
     89packages you are building.  Please enter the versions for the following 
     90packages.  Leave the input blank to accept the current version.\n" 
     91 
     92# Get new version numbers 
     93printf "GPP [%s]: " $GPP_version 
     94read ver_input 
     95if [ ! -z $ver_input ] 
     96then 
     97    $GPP_version=ver_input 
     98fi 
     99 
     100printf "OSSIE CF [%s]: " $ossie_cf_version 
     101read ver_input 
     102if [ ! -z $ver_input ] 
     103then 
     104    $ossie_cf_version=ver_input 
     105fi 
     106 
     107printf "standardInterfaces [%s]: " $standard_interfaces_version 
     108read ver_input 
     109if [ ! -z $ver_input ] 
     110then 
     111    $standard_interfaces_version=ver_input 
     112fi 
     113 
     114printf "WaveDev [%s]: " $WaveDev_version 
     115read ver_input 
     116if [ ! -z $ver_input ] 
     117then 
     118    $WaveDev_version=ver_input 
     119fi 
     120 
     121printf "default GPP node [%s]: " $default_GPP_node_version 
     122read ver_input 
     123if [ ! -z $ver_input ] 
     124then 
     125    $default_GPP_node_version=ver_input 
     126fi 
     127 
     128printf "domain [%s]: " $domain_version 
     129read ver_input 
     130if [ ! -z $ver_input ] 
     131then 
     132    $domain_version=ver_input 
     133fi 
     134 
     135printf "nodebooter [%s]: " $nodebooter_version 
     136read ver_input 
     137if [ ! -z $ver_input ] 
     138then 
     139    $GPP_version=ver_input 
     140fi 
     141 
     142# Set package versions in spec files 
     143sed "s/^Version:.*$/Version:${GPP_version}/" ${GPP_spec} 
    95144 
    96145# Begin building RPMs