Files
LA_library/get_git_version
2025-12-02 13:16:52 +01:00

16 lines
321 B
Bash
Executable File

#!/bin/bash
cat <<!
#include "LA_version.h"
const char LA::version[] =
!
echo -n '"'
echo -n `git describe`
echo -n ' HEAD commit = '
set head=`git rev-parse HEAD`
echo -n $head
echo -n ' dated '
echo -n `git show -s --format=%ci $head`
echo -n ' compiled on ' `date` 'at' `hostname` 'by' `whoami`
echo -n '"'
echo ';'