summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Miller <George@livio.io>2022-06-24 13:23:37 -0400
committerGeorge Miller <George@livio.io>2022-06-24 13:23:37 -0400
commite9bd2ce3108063aa48e86c95205f5cfabd3ad60f (patch)
tree462f572c8ab58ec00ef1537b397e9ef174bc7788
parent53e59e722b05c4a38bfc9582e7462df99ada12a4 (diff)
downloadsdl_ios-e9bd2ce3108063aa48e86c95205f5cfabd3ad60f.tar.gz
moves enabled
-rwxr-xr-xscripts/projectfileheaderfix.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/projectfileheaderfix.sh b/scripts/projectfileheaderfix.sh
index e0cc5c581..8e7f03eb4 100755
--- a/scripts/projectfileheaderfix.sh
+++ b/scripts/projectfileheaderfix.sh
@@ -120,7 +120,7 @@ if [ ! -z "$broken_file_list" ]; then
destiny=$target_path$header_type"/"
# Move the file to the correct destination
- #mv -f $file_found_location $destiny
+ mv -f $file_found_location $destiny
echo "File "$header_filepath" moved to "$destiny"."
# Figure out the opposite of the type
@@ -133,8 +133,8 @@ if [ ! -z "$broken_file_list" ]; then
# Fix path in the project file.
# Output to a second file, then overwrite the first with the second.
# This is done because sed does not like writing to the file it is currently reading.
- #sed '/'$fileref'/{s/'$header_opp'/'$header_type'/;}' $project_file > $project_file"2"
- #mv -f $project_file"2" $project_file
+ sed '/'$fileref'/{s/'$header_opp'/'$header_type'/;}' $project_file > $project_file"2"
+ mv -f $project_file"2" $project_file
# Identify associated code.
code_file=$(sed -n 's/\.h/\.m/p' <<< "$header_filepath")
@@ -143,14 +143,14 @@ if [ ! -z "$broken_file_list" ]; then
code_file_found_location=$(find "$target_path" -name "$code_file_basename" -maxdepth 2)
if [ ! -z "$code_file_found_location" ]; then
# Move associated code file.
- #mv -f $code_file_found_location $destiny
+ mv -f $code_file_found_location $destiny
echo "File "$code_file" moved to "$destiny"."
# Fix path in the project file.
# Output to a second file, then overwrite the first with the second.
# This is done because sed does not like writing to the file it is currently reading.
- #sed '/'$code_file_basename'/{s/'$header_opp'/'$header_type'/;}' $project_file > $project_file"2"
- #mv -f $project_file"2" $project_file
+ sed '/'$code_file_basename'/{s/'$header_opp'/'$header_type'/;}' $project_file > $project_file"2"
+ mv -f $project_file"2" $project_file
fi
done
fi