28 lines
998 B
Plaintext
28 lines
998 B
Plaintext
$OpenBSD: patch-build_tools_autorevision,v 1.1 2013/01/21 16:37:41 pascal Exp $
|
|
--- build_tools/autorevision.orig Tue Jan 15 00:54:06 2013
|
|
+++ build_tools/autorevision Mon Jan 21 00:34:28 2013
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/bash
|
|
+#!/bin/sh
|
|
|
|
# Copyright (c) 2012 dak180
|
|
# See http://opensource.org/licenses/bsd-license.php for licence terms
|
|
@@ -577,7 +577,7 @@ EOF
|
|
# Detect and collect repo data.
|
|
if [[ -f "${CACHEFILE}" ]] && [[ "${CACHEFORCE}" = "1" ]]; then
|
|
# When requested only read from the cache to populate our symbols.
|
|
- source "${CACHEFILE}"
|
|
+ . "${CACHEFILE}"
|
|
elif [[ ! -z "$(git rev-parse HEAD 2>/dev/null)" ]]; then
|
|
gitRepo
|
|
elif [[ ! -z "$(hg root 2>/dev/null)" ]]; then
|
|
@@ -588,7 +588,7 @@ elif [[ ! -z "$(svn info 2>/dev/null)" ]]; then
|
|
svnRepo
|
|
elif [[ -f "${CACHEFILE}" ]]; then
|
|
# We are not in a repo; try to use a previously generated cache to populate our symbols.
|
|
- source "${CACHEFILE}"
|
|
+ . "${CACHEFILE}"
|
|
else
|
|
echo "error: No repo or cache detected." 1>&2
|
|
exit 1
|