From 43dac390967e2e85da0b3fcd84043a77cfaddfd0 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Fri, 30 Oct 2026 15:15:04 +0100 Subject: treewide: Align the rest of the files with the server repository --- tests/old/infrastructure/clean.awk | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 tests/old/infrastructure/clean.awk (limited to 'tests/old/infrastructure/clean.awk') diff --git a/tests/old/infrastructure/clean.awk b/tests/old/infrastructure/clean.awk new file mode 100644 index 00000000..0362d38b --- /dev/null +++ b/tests/old/infrastructure/clean.awk @@ -0,0 +1,23 @@ +# nixos-config - My current NixOS configuration +# +# Copyright (C) 2025 Benedikt Peetz +# SPDX-License-Identifier: GPL-3.0-or-later +# +# This file is part of my nixos-config. +# +# You should have received a copy of the License along with this program. +# If not, see . + +{ + # Shell like comments + gsub(/^#.*$/, "", $0) + + # Strip leading and trailing white space + gsub(/^[[:blank:]]*/, "", $0) + gsub(/[[:blank:]]*$/, "", $0) + + # Only accept the line, if it contains something + if (NF) { + print $0 + } +} -- cgit v1.3.1