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
27 lines
738 B
trap 'echo "Interrupted";
|
|
rm main;
|
|
cp employeeLogin.c.bak employeeLogin.c;
|
|
cp mainMenu.c.bak mainMenu.c;
|
|
rm employeeLogin.c.bak;
|
|
rm mainMenu.c.bak;
|
|
cd ..;
|
|
rm -r build; exit' SIGINT
|
|
clear
|
|
ceedling test:all
|
|
|
|
cd src/
|
|
cp employeeLogin.c employeeLogin.c.bak
|
|
cp mainMenu.c mainMenu.c.bak
|
|
sed -i 's/employeeLogin.c/employeeLogin.h/g' mainMenu.c
|
|
sed -i 's/showGeneralInfoEmployee.c/showGeneralInfoEmployee.h/g' employeeLogin.c
|
|
sed -i 's/mainMenu.c/mainMenu.h/g' employeeLogin.c
|
|
sed -i 's/src\///g' employeeLogin.c
|
|
gcc main.c mainMenu.c employeeLogin.c showGeneralInfoEmployee.c -o main
|
|
./main
|
|
rm main
|
|
cp employeeLogin.c.bak employeeLogin.c
|
|
cp mainMenu.c.bak mainMenu.c
|
|
rm employeeLogin.c.bak
|
|
rm mainMenu.c.bak
|
|
cd ..
|
|
rm -r build/
|