File: include-git

package info (click to toggle)
archvsync 20180513
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 244 kB
  • sloc: sh: 883; makefile: 80
file content (11 lines) | stat: -rw-r--r-- 306 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
# -*- mode:sh -*-
# vim:syn=sh

BASEDIR=${BASEDIR:-"$(readlink -f $(dirname "$0")/..)"}
CONFDIRS=("${BASEDIR}/etc" ~/.config/ftpsync /etc/ftpsync)
LOCKDIR="${BASEDIR}/locks"
LOGDIR="${BASEDIR}/log"

VERSION="g$(cd $BINDIR && git rev-parse --short HEAD 2>/dev/null || echo "unknown")"

. "${BINDIR}/common"