mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-14 09:11:27 +00:00
nightly build: Convert bin/nightly from bash to POSIX shell syntax
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4619 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
|
||||
# Returns the revision number of the source files with date $1.
|
||||
get_revision() {
|
||||
if svn info . >&/dev/null; then
|
||||
if svn info . >/dev/null 2>&1; then
|
||||
svn info -r "{$1}" "${scst_repo}" | sed -n 's/^Revision: //p'
|
||||
else
|
||||
git log --before="$1" | head -n 1 | cut -f2 -d ' '
|
||||
@@ -53,7 +53,7 @@ usage () {
|
||||
# Startup
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
if svn info . >&/dev/null; then
|
||||
if svn info . >/dev/null 2>&1; then
|
||||
scst_repo="https://scst.svn.sourceforge.net/svnroot/scst/trunk"
|
||||
else
|
||||
scst_repo="$(dirname "$(dirname "$(cd "$(dirname "$0")" && echo "$PWD")")")"
|
||||
@@ -150,7 +150,7 @@ for logfile in old new ; do
|
||||
# Check out and run the tests.
|
||||
runcmd ${logfile} \
|
||||
"Checking out SCST source tree" \
|
||||
"if svn info . >&/dev/null; then \
|
||||
"if svn info . >/dev/null 2>&1; then \
|
||||
svn co -q -r {${date}} ${scst_repo} ${ABT_TMPDIR}/scst; \
|
||||
else \
|
||||
( rmdir ${ABT_TMPDIR}/scst && \
|
||||
|
||||
Reference in New Issue
Block a user