#!/bin/csh

foreach d (kernel pipes processors sophya)
  echo ""
  echo "****" $d
  mkdir -p $d
  foreach f (`cat files_$d`)
   echo $f
   rm -f $d/$f
   ln -s ../$f $d/$f
   #cp -p $f $d/$f
  end
  rm -f $d/Makefile.in
  ln -s ../Makefile.in_$d $d/Makefile.in
  #cp -p Makefile.in_$d $d/Makefile.in
end
