#!/bin/csh
foreach file ( gpl.txt lgpl.txt IUCR_POLICY IUCR_POLICY.html NOTICE NOTICE.html \
cif2pdb.cshar.Z cif2pdb.shar.Z )
  if ( ! -e $file ) then
    ln -s ../$file $file
  endif
end
foreach file ( ciftbx.cmf ciftbx.cmn ciftbx.cmv ciftbx.sys )
  if ( ! -e $file ) then
    ln -s ../ciftbx.src/$file $file
  endif
end
if ( ! -e cif_mm.dic.Z ) then
  ln -s ../dictionaries/cif_mm.dic.Z cif_mm.dic.Z
endif
if ( ! -e index.html ) then
  ln -s README.cif2pdb.html index.html
endif
foreach file (*)
  if ( -d $file ) then
    if ( -e $file/.symlinks ) then
      (cd $file; source .symlinks)
    endif
  endif
end
