Browse Source

Modification of build-script and project.yml

remotes/origin/Alpha
fdai7057 2 years ago
parent
commit
e23c55e5c9
  1. 8
      build-project.sh
  2. 1
      project.yml

8
build-project.sh

@ -23,13 +23,13 @@ sed '/Name : John/,$d' employeesData.txt > temp.txt
mv temp.txt employeesData.txt
# backup files
for file in employeeLogin.c mainMenu.c createEmployeeAccount.c; do
for file in employeeLogin.c mainMenu.c createEmployeeAccount.c _file_information.h; do
cp "$file" "$file.bak"
done
# remove 'src/'
for file in employeeLogin.c createEmployeeAccount.c; do
for file in employeeLogin.c createEmployeeAccount.c _file_information.h; do
sed -i 's/src\///g' "$file"
done
@ -39,12 +39,12 @@ gcc mainMenu.c error.c createEmployeeAccount.c showGeneralInfoEmployee.c employ
rm main
# restore backups
for file in employeeLogin.c mainMenu.c createEmployeeAccount.c; do
for file in employeeLogin.c mainMenu.c createEmployeeAccount.c _file_information.h; do
cp "$file.bak" "$file"
done
# remove backups
for file in employeeLogin.c.bak mainMenu.c.bak createEmployeeAccount.c.bak; do
for file in employeeLogin.c.bak mainMenu.c.bak createEmployeeAccount.c.bak _file_information.h.bak; do
rm "$file"
done

1
project.yml

@ -58,6 +58,7 @@
- src/currentCustomerAccountBalance.*
- src/depositMoney.*
- src/displayDisclaimer.*
- src/sendMoney.*
:support:
- tests/support
- tests/support

Loading…
Cancel
Save