IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 11, 2013, 8:25:53 AM (13 years ago)
Author:
eugene
Message:

update scripts for dvo distributions & index files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130307/dvodist/scripts/mkindex.dvo.pl

    r35276 r35290  
    11#!/usr/bin/env perl
    22
    3 if (@ARGV != 2) { die "USAGE: mkindex.dvo.pl (catdir) (catdir_name)\n" ;}
     3if (@ARGV != 3) { die "USAGE: mkindex.dvo.pl (catdir) (catdir_name) (ippdata | dvodist)\n" ;}
    44
    55@nlist = ("n0000", "n0730", "n1500", "n2230", "n3000", "n3730", "n4500", "n5230", "n6000", "n6730", "n7500", "n8230");
     
    88$catdir = &basename($ARGV[0]);
    99$catdir_name = $ARGV[1];
     10$target_name = $ARGV[2];
    1011# "Synthetic Photometry Catdir";
    1112
     
    3435
    3536    # XXX ippdata.page.php vs dvodist.page.php
    36     print FILE "<?php include \"\@HTDOCS\@/www-util/ippdata.page.php\"\; ?>\n\n";
     37    if ($target_name eq "ippdata") {
     38        print FILE "<?php include \"\@HTDOCS\@/www-util/ippdata.page.php\"\; ?>\n\n";
     39    } else {
     40        print FILE "<?php include \"\@HTDOCS\@/www-util/dvodist.page.php\"\; ?>\n\n";
     41    }
    3742
    3843    # CATDIR Title supplied on cmd line
Note: See TracChangeset for help on using the changeset viewer.