mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-02-06 21:40:11 +00:00
cf3554b4e8
New scripts have updated executable permissions to be consistent with project requirements. Signed-off-by: Agathiyan Bragadeesh <agabra02@e127300.arm.com>
24 lines
630 B
Bash
Executable File
24 lines
630 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_GENERATED_FILES###" ]; then
|
|
IN_GEN_BLOCK=true
|
|
echo "###START_COMMENTED_GENERATED_FILES###"
|
|
elif [ "$line" = "###END_GENERATED_FILES###" ]; then
|
|
IN_GEN_BLOCK=false
|
|
echo "###END_COMMENTED_GENERATED_FILES###"
|
|
elif $IN_GEN_BLOCK ; then
|
|
echo "#$line"
|
|
else
|
|
echo "$line"
|
|
fi
|
|
done <$GITIGNORE > "$GITIGNORE.tmp"
|
|
mv "$GITIGNORE.tmp" $GITIGNORE
|
|
done
|