Implement a Makefile for Inform.
[inform.git] / version.sh
diff --git a/version.sh b/version.sh
new file mode 100755 (executable)
index 0000000..9e63166
--- /dev/null
@@ -0,0 +1,17 @@
+# This file is part of Inform.
+#
+# Inform is free software: you can redistribute it and/or modify it
+# under the terms of the GNU General Public License as published by
+# theFree Software Foundation, either version 3 of the License, or
+#(at your option) any later version.
+#
+# Inform is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with Inform. If not, see https://gnu.org/licenses/
+
+commit_count=$(git rev-list HEAD --count)
+echo "6.$commit_count"
\ No newline at end of file