IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 5, 2013, 2:34:10 PM (13 years ago)
Author:
eugene
Message:

merge changes from eam_branches/ipp-20130207

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dvodist/scripts/mkindex.sh

    r33986 r35238  
    88set topdir = $argv[1]
    99
    10 # this is weak: depends on root location
    11 ln -s /data/ippc17.0/www/dvodist/www-root/index.php $topdir/
     10set file = `basename $topdir`
    1211
    13 set file = `basename $topdir`
    14 echo "$file : plain : title  : Title" > $topdir/index.txt
    15 echo "..             : dir   : dir2  : parent directory" >> $topdir/index.txt
     12echo '<?php include "@HTDOCS@/www-util/dvodist.page.php"; ?>' >  $topdir/index.mkd
     13
     14echo "$file : plain : title  : Title" >> $topdir/index.mkd
     15echo "..             : dir   : dir2  : parent directory" >> $topdir/index.mkd
    1616
    1717set N = 1
    1818foreach entry ($topdir/*)
    1919  set file = `basename $entry`
    20   if ("$file" == "index.php") continue
    21   if ("$file" == "index.txt") continue
     20  if ("$file" == "index.mkd") continue
    2221
    2322  if (-d $entry) then
    24     echo "$file : dir : dir$N : directory" >> $topdir/index.txt
     23    echo "@ $file : dir : dir$N : directory" >> $topdir/index.mkd
    2524  endif
    2625
    2726  if (-f $entry) then
    28     echo "$file : file : file$N : database file" >> $topdir/index.txt
     27    echo "@ $file : file : file$N : database file" >> $topdir/index.mkd
    2928  endif
    3029
Note: See TracChangeset for help on using the changeset viewer.