mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-05 18:50:44 +00:00
10 lines
495 B
Bash
Executable File
10 lines
495 B
Bash
Executable File
#!/bin/bash
|
|
|
|
version=`cat ./sleepyhead/version.h | perl -ne 'my @array = /^const\s*int (major|minor|revision)_(version|number) = (\d+;).*/; print $array[2]' | perl -ne 'my @ar=split(";"); print join(".", @ar);'`
|
|
buildno=`cat ./sleepyhead/scripts/build_number`
|
|
gitversion=`git rev-parse --short HEAD`
|
|
echo "SleepyHead Source Information"
|
|
echo "Current Version: v${version}-${buildno} (git rev ${gitversion})"
|
|
echo "Last commit: `git log -1 --format=%cd`"
|
|
echo "Use 'git pull' to get up to date"
|