Bwbasic-3.20b
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

57 lines
1.6 KiB

  1. #!/bin/bash
  2. echo "05/03/2020 Ken. Install bwbasic-3.20b. Soup to nuts."
  3. echo -e "\nYou may be required to enter your password.\n"
  4. if [ `id -u` == "0" ]
  5. then
  6. echo -e "\n\nThis should not be executed as root\n\n"
  7. exit
  8. fi
  9. echo -e -n "\007Press Enter to begin " ; read j
  10. cd ~/
  11. echo " "
  12. if [ -d "bwbasic-3.20b" ]
  13. then
  14. echo -e " ===> bwbasic-3.20b directory already exists <=== \007"
  15. echo " Can not compile"
  16. echo "If this is a rerun rm -r bwbasic-3.20b then $0"
  17. echo " Manual intervention required"
  18. echo " "
  19. exit
  20. else
  21. echo -e "Untaring, Compiling\n"
  22. tar -xf bwbasic-3.20b.tar
  23. echo -e "...Compiling...\n"
  24. cd bwbasic-3.20b
  25. make
  26. echo -e "\nCompile exited\n"
  27. echo -e -n "\007If no errors Press Enter " ; read j
  28. echo -e "\n...Installing...\n"
  29. sudo make install
  30. echo -e "\nInstall exited\n"
  31. echo -e -n "\007If no errors Press Enter " ; read j
  32. fi
  33. cd ~/
  34. echo " "
  35. if [ -d "bwbasic" ]
  36. then
  37. echo -e "===> bwbasic directory exists <=== \007"
  38. echo " Can not overwrite existing files."
  39. echo " If you have new or modified programs"
  40. echo " in bwbasic temporarily move them to a"
  41. echo " different folder. Then after install"
  42. echo " move them back."
  43. echo " If directory bwbasic in error"
  44. echo " Try rm -r bwbasic and $0"
  45. else
  46. echo "===> Instaling bwbasic sample programs <==="
  47. echo " "
  48. echo "Copying files into folder bwbasic"
  49. mkdir ~/bwbasic
  50. cp ~/bwbasic-3.20b/BAS-EXAMPLES/* ~/bwbasic
  51. echo "Copying completed"
  52. fi
  53. echo -e "\n\007"
  54. echo "You can run bwbasic at the command line. To exit bwbasic use quit"
  55. echo "Should be Done"