Files
UnrealEngineUWP/Engine/Build/BatchFiles/Linux/FixDependencyFiles.sh
Thomas Sarkanen 8ba3c4c087 Merging //UE4/Dev-Main to Dev-Anim (//UE4/Dev-Anim) @ CL 4643671
#rb none
#jira none

[CL 4665410 by Thomas Sarkanen in Dev-Anim branch]
2018-12-17 06:31:16 -05:00

20 lines
633 B
Bash
Executable File

#!/bin/bash
# Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
# Fixes for case sensitive filesystem.
echo "Fixing inconsistent case in filenames."
for BASE in Content/Editor/Slate Content/Slate Documentation/Source/Shared/Icons; do
if [ ! -d $BASE ]; then
continue;
fi
find $BASE -name "*.PNG" | while read PNG_UPPER; do
png_lower="$(echo "$PNG_UPPER" | sed 's/.PNG$/.png/')"
if [ ! -f "$png_lower" ]; then
PNG_UPPER=$(basename "$PNG_UPPER")
echo "$png_lower -> $PNG_UPPER"
# link, and not move, to make it usable with Perforce workspaces
ln -sf "`basename "$PNG_UPPER"`" "$png_lower"
fi
done
done