#!/bin/csh -f # make_slideshow_links # ------------------------------------------------------------------------- # Shell script to create a "slideshow" folder of links to all JPGs and # caption files (*.txt) in the current directory. # ------------------------------------------------------------------------- # Revision History: # $Log$ # ------------------------------------------------------------------------- if ($1:q == "-h" || $1:q == "--help") then echo "Usage: $0:t" exit 1 endif mkdir slideshow >& /dev/null #??Slideshow software won't load images via links. Why? #??foreach file (*.jpg *.JPG *.txt* *.TXT) #?? if (! -l "slideshow/$file") then #?? (set echo; ln -s "../$file" "slideshow/$file") #?? endif #??end remotecopy -u *.jpg *.JPG *.txt* *.TXT slideshow