File: hscript.csh

package info (click to toggle)
libwn6 6.0-12
  • links: PTS
  • area: main
  • in suites: woody
  • size: 6,004 kB
  • ctags: 3,903
  • sloc: ansic: 45,078; makefile: 958; csh: 274; sh: 26
file content (12 lines) | stat: -rwxr-xr-x 182 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/csh -f

set nonomatch

foreach hfile (*/*.h)
  if ( ! -e h/`basename $hfile` ) then
    echo "linking $hfile"
    rm -f h/`basename $hfile`
    ln -s ../$hfile h
  endif
end