mirror of
https://github.com/falk-werner/webfuse
synced 2025-06-13 12:54:15 +00:00
* adds debian builder image * adds arm32v7 debian based builder image * sets the default build target to amd64-ubuntu-builder if MARCH is unset * adds distro filter and set default to ubuntu for travis disables debian builds for now * fixes wrapper for non container hosts * fixes distro selection and parallel mflags * changes parallelization option * fixes parallel flags and variable names * enhances makefile adds checksum for fetch dependencies discovers necessary commands fixes error when script get_container_id not found * fixes copy artifacts to image * fixes typo * fixes another typo * removes bash dependency - simplifies scripts to support posix shell - adds REGISTERY_PREFIX to support usage of local docker registry - renames wrapper template - adds discovery for tty and interactive for wrappers * adds docker-compose wrapper * adds ability to start wrapper in namespace of another container * renames compose wrapper script * adds support to retrieve source epoch date for svn * fixes handling for positional arguments * removes docker connection options * removes dependency to readlink * removes duplicate options
35 lines
695 B
Bash
Executable File
35 lines
695 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
export LANG=C
|
|
export LC_ALL=C
|
|
|
|
[ -n "$TOPDIR" ] && cd "$TOPDIR"
|
|
|
|
try_git() {
|
|
[ -e .git ] || return 1
|
|
SOURCE_DATE_EPOCH="$(git log -1 --format=format:%ct)"
|
|
[ -n "$SOURCE_DATE_EPOCH" ]
|
|
}
|
|
|
|
try_svn() {
|
|
[ -d .svn ] || return 1
|
|
SOURCE_DATE_EPOCH="$(date -d "$(svn info | sed -n -e 's/^Last Changed Date: //p')" +%s)"
|
|
[ -n "$SOURCE_DATE_EPOCH" ]
|
|
}
|
|
|
|
try_hg() {
|
|
[ -d .hg ] || return 1
|
|
SOURCE_DATE_EPOCH="$(hg log --template '{date}' -l 1 | cut -d. -f1)"
|
|
[ -n "$SOURCE_DATE_EPOCH" ]
|
|
}
|
|
|
|
try_mtime() {
|
|
perl -e 'print((stat $ARGV[0])[9])' "$0"
|
|
[ -n "$SOURCE_DATE_EPOCH" ]
|
|
}
|
|
|
|
try_git || try_svn || try_hg || try_mtime || SOURCE_DATE_EPOCH=""
|
|
echo "$SOURCE_DATE_EPOCH"
|