summaryrefslogtreecommitdiff
path: root/manualPorts/cssh/lastVersion.sh
diff options
context:
space:
mode:
Diffstat (limited to 'manualPorts/cssh/lastVersion.sh')
-rwxr-xr-xmanualPorts/cssh/lastVersion.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/manualPorts/cssh/lastVersion.sh b/manualPorts/cssh/lastVersion.sh
new file mode 100755
index 0000000..3415db7
--- /dev/null
+++ b/manualPorts/cssh/lastVersion.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+git -C /usr/src/github/cssh fetch --all -p >/dev/null 2>&1
+
+printf '0.r%s.%s\n' \
+ "$(git -C /usr/src/github/cssh rev-list --count origin/master)" \
+ "$(git -C /usr/src/github/cssh rev-parse --short origin/master)"