mk_target 876 B

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