mk_target 887 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #!/bin/sh
  2. set -e
  3. : machine-dependant stuff
  4. create_dir $TARGET_HOME
  5. create_dir $TARGET_HOME/config
  6. create_dir $TARGET_HOME/lib.bin
  7. create_dir $TARGET_HOME/modules
  8. create_dir $TARGET_HOME/modules/h
  9. create_dir $TARGET_HOME/bin
  10. cp local.h em_path.h $TARGET_HOME/config
  11. cp_dir $SRC_HOME/bin $TARGET_HOME/bin
  12. cp $CONFIG/bin/cp_dir $TARGET_HOME/bin/cp_dir
  13. echo "echo $SYSNAME" > $TARGET_HOME/bin/ack_sys
  14. chmod +x $TARGET_HOME/bin/ack_sys
  15. : machine-independant stuff
  16. if [ $DO_MACHINE_INDEP = n ]
  17. then
  18. exit 0
  19. fi
  20. create_dir $TARGET_HOME/lib
  21. create_dir $TARGET_HOME/etc
  22. create_dir $TARGET_HOME/h
  23. create_dir $TARGET_HOME/include
  24. create_dir $TARGET_HOME/doc
  25. cp $SRC_HOME/etc/ip_spec.t $TARGET_HOME/etc/ip_spec.t
  26. cp_dir $SRC_HOME/lib $TARGET_HOME/lib
  27. cp_dir $SRC_HOME/h $TARGET_HOME/h
  28. cp_dir $SRC_HOME/include $TARGET_HOME/include
  29. cd $TARGET_HOME
  30. find . -type f -exec chmod +w {} \;
  31. exit 0