summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorNicolas Vandamme <n.vandamme@firis-system.lu>2025-09-01 16:59:44 +0200
committerNicolas Vandamme <n.vandamme@firis-system.lu>2025-09-01 16:59:44 +0200
commitb9f60711392463af1892a30472fba6622a73390a (patch)
tree7b7f7942ddb2bc966b917834e16bc6d2b80baa75 /scripts
parent4f0f02e9e38183850021f9b9e19caab3c3062233 (diff)
parentb759dad71c358ea8772ab4973e71660c10a12524 (diff)
downloadvyos-1x-b9f60711392463af1892a30472fba6622a73390a.tar.gz
vyos-1x-b9f60711392463af1892a30472fba6622a73390a.zip
Merge branch 'current' into current
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/transclude-template5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/transclude-template b/scripts/transclude-template
index 5c6668a84..767583acd 100755
--- a/scripts/transclude-template
+++ b/scripts/transclude-template
@@ -23,6 +23,7 @@
import os
import re
import sys
+import glob
regexp = re.compile(r'^ *#include <(.+)>$')
@@ -34,7 +35,9 @@ def parse_file(filename):
if line:
result = regexp.match(line)
if result:
- lines += parse_file(os.path.join(directory, result.group(1)))
+ res = os.path.join(directory, result.group(1))
+ for g in sorted(glob.glob(res)):
+ lines += parse_file(g)
else:
lines += line
else: