mirror of https://github.com/libsdl-org/SDL
Fixed "${folder^}Activity: bad substitution" with bash 3.2 on macOS
(cherry picked from commit c36f773eb4
)
This commit is contained in:
parent
a842bc29fa
commit
75c5cff0bf
|
@ -81,7 +81,7 @@ do
|
||||||
done
|
done
|
||||||
|
|
||||||
# Uppercase the first char in the activity class name because it's Java
|
# Uppercase the first char in the activity class name because it's Java
|
||||||
ACTIVITY="${folder^}Activity"
|
ACTIVITY="$(echo $folder | awk '{$1=toupper(substr($1,0,1))substr($1,2)}1')Activity"
|
||||||
sed -i -e "s|\"SDLActivity\"|\"$ACTIVITY\"|g" $BUILDPATH/app/src/main/AndroidManifest.xml
|
sed -i -e "s|\"SDLActivity\"|\"$ACTIVITY\"|g" $BUILDPATH/app/src/main/AndroidManifest.xml
|
||||||
|
|
||||||
# Fill in a default Activity
|
# Fill in a default Activity
|
||||||
|
|
Loading…
Reference in New Issue