IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 16675


Ignore:
Timestamp:
Feb 26, 2008, 2:49:12 PM (18 years ago)
Author:
bills
Message:

get configuration information from IPP config system.
Install the scripts.

Location:
trunk/pstamp
Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/pstamp/Makefile.am

    r16132 r16675  
    1 SUBDIRS = src
     1SUBDIRS = src scripts
    22
    33CLEANFILES = *~ core core.*
  • trunk/pstamp/configure.ac

    r16597 r16675  
    44AC_INIT([ppstamp], [0.1.1], [ipp-support@ifa.hawaii.edu])
    55AC_CONFIG_SRCDIR([src])
     6AC_CONFIG_SRCDIR([scripts])
    67
    78AM_INIT_AUTOMAKE([1.6 foreign dist-bzip2])
     
    4445  Makefile
    4546  src/Makefile
     47  scripts/Makefile
    4648])
    4749
  • trunk/pstamp/scripts

    • Property svn:ignore set to
      Makefile.in
      Makefile
  • trunk/pstamp/scripts/pstamp_new_request.sh

    r16592 r16675  
    4747# Invoke the data store registration script
    4848echo $request_file chip n/a | dsreg -dsdir $DATA_STORE -add -type PSTAMP $PRODUCT $fileset_id
     49
    4950status=$?
    50 if [[ $status != 0 ]]; then
     51if [[ $status != 0 ]] ; then
    5152    echo dsreg failed: $status
    5253    rm -r $dir_path
    5354    exit $status
    54 end
     55fi
    5556
    5657exit 0
     58
  • trunk/pstamp/scripts/pstamp_parser_run.pl

    r16591 r16675  
    1919my $request_id = $ARGV[0];
    2020
    21 # XXX: CONFIGURATION: get these from a configuration file
    22 my $inputWorkdir = "/export/data1/bills/pstamp/work/$request_id";
    23 my $outputDataStoreRoot = "/var/www/html/ds/dsroot";
    24 my $defaultOutputRoot = $outputDataStoreRoot;
    2521
    2622use IPC::Cmd 0.36 qw( can_run run );
     
    4238                       );
    4339
     40my $ipprc = PS::IPP::Config->new(); # IPP Configuration
     41
     42#my $outputDataStoreRoot = "/var/www/html/ds/dsroot";
     43
     44my $outputDataStoreRoot = metadataLookupStr($ipprc->{_ipprc}, 'PSTAMP_DATA_STORE_ROOT');
     45exit ($PS_EXIT_CONFIG_ERROR) unless defined $outputDataStoreRoot;
     46my $defaultOutputRoot = $outputDataStoreRoot;
     47
     48
     49#my $inputWorkdir = "/export/data1/bills/pstamp/work/$request_id";
     50
     51my $inputWorkdir = metadataLookupStr($ipprc->{_ipprc}, 'PSTAMP_WORKDIR');
     52exit ($PS_EXIT_CONFIG_ERROR) unless defined $inputWorkdir;
     53$inputWorkdir .= "/$request_id";
     54   
    4455my $missing_tools;
    4556
Note: See TracChangeset for help on using the changeset viewer.