Install_step_3 592 B

123456789101112131415161718192021
  1. #! /bin/sh
  2. #
  3. # This script installs the TIGCCLIB.
  4. # For this, 2 directories have to be created. One (include) contains header
  5. # files, the other (lib) contains libraries.
  6. #
  7. echo TIGCC script: Installing TIGCCLIB...
  8. rm -Rf $TIGCC/include
  9. cp -Rf ../tigcclib/include $TIGCC
  10. pushd $TIGCC/include/asm >/dev/null
  11. # only symlink if the file system is case sensitive
  12. if [ ! -f OS.h ]
  13. then ln -sf os.h OS.h
  14. fi
  15. popd >/dev/null
  16. rm -Rf $TIGCC/lib
  17. cp -Rf ../tigcclib/lib $TIGCC
  18. rm -Rf $TIGCC/examples
  19. cp -Rf ../tigcclib/examples $TIGCC
  20. #cd ../tigcclib/src; make; make clean; cp tigcc.a $TIGCC/include/c