mirror of
https://github.com/strukturag/nextcloud-spreed-signaling
synced 2024-06-15 20:25:12 +02:00
8d9c9cc1cd
* 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
22 lines
483 B
Bash
Executable file
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
|