summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Miller <George@livio.io>2022-07-06 14:59:28 -0400
committerGeorge Miller <George@livio.io>2022-07-06 14:59:28 -0400
commit9ae0b1f0cca83bdac13fcf2f15e063c7323068f4 (patch)
treec388ccf8f8f5d63cf1a4d4014d632a99b3467d10
parentd1061adac76f8a1e95d3a36ad10d144b3041f962 (diff)
downloadsdl_ios-9ae0b1f0cca83bdac13fcf2f15e063c7323068f4.tar.gz
fixed a bug
Fixed a bug where files paths were not being fixed in the project file.
-rwxr-xr-xscripts/project_file_header_fix.sh12
1 files changed, 8 insertions, 4 deletions
diff --git a/scripts/project_file_header_fix.sh b/scripts/project_file_header_fix.sh
index 7b4a0b0a1..03e31b164 100755
--- a/scripts/project_file_header_fix.sh
+++ b/scripts/project_file_header_fix.sh
@@ -85,7 +85,7 @@ do
# Test to see if the file is where it should be. (Does the path contain the correct folder)
if [[ ! $file_found_location == *"/$header_type/"* ]]; then
# Add the file to the list of files that are in the wrong location.
- broken_file_list+=$file_found_location"=="$header_type" "
+ broken_file_list+=$file_found_location"=="$header_type"=="$fileref" "
fi
fi
fi
@@ -99,7 +99,9 @@ if [ ! -z "$broken_file_list" ]; then
do
if [ ! -z "$header_file" ]; then
header_filepath="${header_file%%==*}"
- header_type="${header_file##*==}"
+ header_type1="${header_file%==*}"
+ header_type="${header_type1##*==}"
+ fileref="${header_file##*==}"
code_file=$(sed -n 's/\.h/\.m/p' <<< "$header_filepath")
echo $header_filepath" and "$code_file" are marked "$header_type
fi
@@ -112,8 +114,10 @@ if [ ! -z "$broken_file_list" ]; then
do
echo
header_filepath="${header_file%%==*}"
- header_type="${header_file##*==}"
-
+ header_type1="${header_file%==*}"
+ header_type="${header_type1##*==}"
+ fileref="${header_file##*==}"
+
# Figure out where the file should be located
destiny=$target_path"/"$header_type"/"