Skip to content

Commit cb7b64c

Browse files
authored
Merge pull request #2087 from Villemoes/sort-license
scripts: avoid pointless LICENSE churn
2 parents 9853cc3 + 0602af4 commit cb7b64c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/generate-license-file

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
#!/bin/bash
22

3+
export LC_ALL=C
4+
35
# Create or clear the LICENSE file
46
echo "# License Information" > LICENSE
57
echo "" >> LICENSE
68
echo "This file lists all licenses used by recipes in the meta-freescale layer." >> LICENSE
79
echo "" >> LICENSE
810

911
# Find all .bb and .inc files and extract license information
10-
find . -type f \( -name "*.bb" -o -name "*.inc" \) | while read -r file; do
12+
find . -type f \( -name "*.bb" -o -name "*.inc" \) | sort | while read -r file; do
1113
# Extract the license line from each recipe file, if it exists
1214
license_line=$(grep -i "^LICENSE" "$file")
1315
if [ -n "$license_line" ]; then

0 commit comments

Comments
 (0)