-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclean.sh
41 lines (29 loc) · 1.22 KB
/
clean.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash
#
# ******************************************************************************
# @file clean.sh
# @brief Firmware versioning script to clean the project
#
# ******************************************************************************
#Include '_common.sh'
if [ ${BASH_SOURCE+set} ]; then
source "$(dirname ${BASH_SOURCE[0]})/_common.sh"
else
source "$(dirname $0)/_common.sh"
fi
#-------------------------------------------------------------------------------
script_begin "clean.sh"
#-------------------------------------------------------------------------------
#Verify initialization
check_for_init
#Path to the C++ header file within the project containing the version
#This file should typically not be tracked by git
config_version_header_filepath=$(readconfig "${CONFIG_PROJECT_CONFIGURATION_FILEPATH}" "version_header_filepath")
#-------------------------------------------------------------------------------
echo "Deleting files..."
#Delete version header
rm -f "${config_version_header_filepath}"
#Delete build information file
rm -f "${CONFIG_BUILD_INFO_FILEPATH}"
#-------------------------------------------------------------------------------
script_exit