nextcloud-spreed-signaling/scripts/get-version.sh
n-connect 8d9c9cc1cd
FreeBSD updates (#2)
* FreeBSD update

1. run the build with gmake build on FreeBSD
2. Using env instead of direct interpreter call in head of python script - more flexible use of python scripts (there's no default symlink like python2 or python3 in FreeBSD)
3. removing full path before of 'curl' to be able to run it by the script for dependency downloads

* FreeBSD Update

Change script header using env instead of direct Bash shell call (full path of 'env' is '/usr/bin/env')

* Update README.md

* Fixed update to work on FreeBSD too

After applying the meta-package it is more widely usable
2020-05-20 08:42:22 +02:00

22 lines
483 B
Bash
Executable file

#!/usr/bin/env bash
set -e
ROOT="$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)"
VERSION=
if [ -s "$ROOT/../version.txt" ]; then
VERSION=$(cat "$ROOT/../version.txt" | tr -d '[:space:]')
fi
if [ -z $VERSION ] && [ -d "$ROOT/../.git" ]; then
if [ "$1" == "--tar" ]; then
VERSION=$(git describe --dirty --tags --always | sed 's/debian\///g')
else
VERSION=$(git log -1 --pretty=%H)
fi
fi
if [ -z $VERSION ]; then
VERSION=unknown
fi
echo $VERSION