aboutsummaryrefslogtreecommitdiffstats
path: root/version-manifest/src/main/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'version-manifest/src/main/scripts')
-rwxr-xr-xversion-manifest/src/main/scripts/check-sorted.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/version-manifest/src/main/scripts/check-sorted.sh b/version-manifest/src/main/scripts/check-sorted.sh
new file mode 100755
index 000000000..d926409f4
--- /dev/null
+++ b/version-manifest/src/main/scripts/check-sorted.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+LC_ALL=C sort -c $1
+retval=$?
+if [ $retval -ne 0 ]; then
+ echo
+ echo "ERROR: $1 is not properly sorted. Please sort it with the following commands:"
+ echo
+ echo " LC_ALL=C sort < $1 > $1.tmp"
+ echo " mv $1.tmp $1"
+ echo
+fi
+exit $retval