File: hscript.csh

package info (click to toggle)
libwn6 6.0-3
  • links: PTS
  • area: main
  • in suites: potato
  • size: 5,996 kB
  • ctags: 3,938
  • sloc: ansic: 45,083; makefile: 926; csh: 274; sh: 12
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