mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-02-11 18:40:53 +00:00
New scripts have updated executable permissions to be consistent with project requirements. Signed-off-by: Agathiyan Bragadeesh <agabra02@e127300.arm.com>
24 lines
633 B
Bash
Executable File
24 lines
633 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eu
|
|
|
|
GITIGNORES=$(find . -name ".gitignore")
|
|
|
|
for GITIGNORE in $GITIGNORES; do
|
|
IN_GEN_BLOCK=false
|
|
while read -r line; do
|
|
if [ "$line" = "###START_COMMENTED_GENERATED_FILES###" ]; then
|
|
IN_GEN_BLOCK=true
|
|
echo "###START_GENERATED_FILES###"
|
|
elif [ "$line" = "###END_COMMENTED_GENERATED_FILES###" ]; then
|
|
IN_GEN_BLOCK=false
|
|
echo "###END_GENERATED_FILES###"
|
|
elif $IN_GEN_BLOCK ; then
|
|
echo "${line:1}"
|
|
else
|
|
echo "$line"
|
|
fi
|
|
done <$GITIGNORE > "$GITIGNORE.tmp"
|
|
mv "$GITIGNORE.tmp" $GITIGNORE
|
|
done
|