IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 35276


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

script to build dvo catdir index files

File:
1 edited

Legend:

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

    r35271 r35276  
    11#!/usr/bin/env perl
    22
    3 if (@ARGV != 1) { die "USAGE: mkindex.dvo.pl (catdir)\n" ;}
     3if (@ARGV != 2) { die "USAGE: mkindex.dvo.pl (catdir) (catdir_name)\n" ;}
    44
    55@nlist = ("n0000", "n0730", "n1500", "n2230", "n3000", "n3730", "n4500", "n5230", "n6000", "n6730", "n7500", "n8230");
     
    77
    88$catdir = &basename($ARGV[0]);
    9 $catdir_name = "Synthetic Photometry Catdir";
     9$catdir_name = $ARGV[1];
     10# "Synthetic Photometry Catdir";
    1011
    1112&mkindex ($ARGV[0], "topdir");
     
    4445
    4546    if ($mode eq "topdir") {
    46         print FILE "(up to [PARENT](\@ROOTWWW\@/index.php))\n\n";
     47        print FILE "(up to [PARENT](\@WWWHOST\@/index.php))\n\n";
    4748    } else {
    48         print FILE "(up to [$catdir_name](\@ROOTWWW\@/$catdir/index.php))\n\n";
     49        print FILE "(up to [$catdir_name](\@WWWHOST\@/$catdir/index.php))\n\n";
    4950    }
    5051
    5152    print FILE "Download this entire directory with the following command:\n\n";
    5253
    53     print FILE "<tt> wget -c -r -np -nH \@ROOTWWW\@/$thisdir</tt>\n\n";
     54    print FILE "<tt> wget -c -r -np -nH \@WWWHOST\@/$thisdir/index.php</tt>\n\n";
    5455
    5556    print FILE "@ Data Product : none : plain : title : size (bytes)\n";
Note: See TracChangeset for help on using the changeset viewer.