diff options
author | Michael Reifenberger <mr@FreeBSD.org> | 2025-07-23 11:30:16 +0200 |
---|---|---|
committer | Michael Reifenberger <mr@FreeBSD.org> | 2025-07-23 11:33:31 +0200 |
commit | f74c9aef8fe7e3f70ae89af6611bb389be723206 (patch) | |
tree | c8e0d332904f74acf19e24c3d406419f727ef822 /misc/spnavcfg-devel/files/newVersion.sh | |
parent | misc/spacenavd-devel: Daemon for Spacenav driver (diff) |
misc/spnavcfg-devel: spacenavd config program
Interactive configuration program for the Spacenav daemon
(misc/spacenavd-devel). Allows customizing the Axis and Button behaviors.
There is a pending PR for misc/spnavcfg-devel but currently the owner of it
is not responding so this is a adopted devel version
PR: 283067
Diffstat (limited to 'misc/spnavcfg-devel/files/newVersion.sh')
-rw-r--r-- | misc/spnavcfg-devel/files/newVersion.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/misc/spnavcfg-devel/files/newVersion.sh b/misc/spnavcfg-devel/files/newVersion.sh new file mode 100644 index 000000000000..6e67cdf20226 --- /dev/null +++ b/misc/spnavcfg-devel/files/newVersion.sh @@ -0,0 +1,22 @@ +#!/bin/sh + +CURDIR=`pwd` +WRKDIR=`pwd`/work +#mkdir -p "${WRKDIR}" + +if [ \! -d "${CURDIR}/spnavcfg-repo" ]; then + git clone -b master https://github.com/FreeSpacenav/spnavcfg.git "${CURDIR}/spnavcfg-repo"; +else + cd "${CURDIR}/spnavcfg-repo" + git pull https://github.com/FreeSpacenav/spnavcfg.git; +fi + +cd "${CURDIR}/spnavcfg-repo" +GIT_SRC_HASH=`git log -n 1 --pretty=format:"%H"`; +GIT_SRC_DATE=`git log -n 1 --date=iso-local -n 1 --pretty=format:"%cd" | \ + cut -c '1-19' | sed -e 's,-,,g' -e 's,:,,g' -e 's, ,,g'` + +echo "$GIT_SRC_HASH, $GIT_SRC_DATE" +echo "GIT_SRC_HASH= ${GIT_SRC_HASH}" > ${CURDIR}/Makefile.git_rev +echo "GIT_SRC_DATE= ${GIT_SRC_DATE}" >> ${CURDIR}/Makefile.git_rev + |