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.

27 lines
738 B

2 years ago
2 years ago
  1. trap 'echo "Interrupted";
  2. rm main;
  3. cp employeeLogin.c.bak employeeLogin.c;
  4. cp mainMenu.c.bak mainMenu.c;
  5. rm employeeLogin.c.bak;
  6. rm mainMenu.c.bak;
  7. cd ..;
  8. rm -r build; exit' SIGINT
  9. clear
  10. ceedling test:all
  11. cd src/
  12. cp employeeLogin.c employeeLogin.c.bak
  13. cp mainMenu.c mainMenu.c.bak
  14. sed -i 's/employeeLogin.c/employeeLogin.h/g' mainMenu.c
  15. sed -i 's/showGeneralInfoEmployee.c/showGeneralInfoEmployee.h/g' employeeLogin.c
  16. sed -i 's/mainMenu.c/mainMenu.h/g' employeeLogin.c
  17. sed -i 's/src\///g' employeeLogin.c
  18. gcc main.c mainMenu.c employeeLogin.c showGeneralInfoEmployee.c -o main
  19. ./main
  20. rm main
  21. cp employeeLogin.c.bak employeeLogin.c
  22. cp mainMenu.c.bak mainMenu.c
  23. rm employeeLogin.c.bak
  24. rm mainMenu.c.bak
  25. cd ..
  26. rm -r build/