aboutsummaryrefslogtreecommitdiffstats
path: root/version-check.sh
diff options
context:
space:
mode:
Diffstat (limited to 'version-check.sh')
-rwxr-xr-xversion-check.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/version-check.sh b/version-check.sh
index 02fe1f4..ecca6dc 100755
--- a/version-check.sh
+++ b/version-check.sh
@@ -1,4 +1,8 @@
#!/bin/bash
+# SPDX-License-Identifier: GPL-2.0
+#
+# Copyright (C) 2015-2017 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
+
set -e
[[ -n $1 && -f $1/Makefile ]]
[[ $(< "$1/Makefile") =~ VERSION[[:space:]]*=[[:space:]]*([0-9]+).*PATCHLEVEL[[:space:]]*=[[:space:]]*([0-9]+).*SUBLEVEL[[:space:]]*=[[:space:]]*([0-9]+) ]]