[exim-cvs] source referenced version.sh file always

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Exim Git Commits Mailing List
Data:  
Para: exim-cvs
Asunto: [exim-cvs] source referenced version.sh file always
Gitweb: http://git.exim.org/exim.git/commitdiff/c6554334704090e9c8aa81fa34140da7b5fd9ae6
Commit:     c6554334704090e9c8aa81fa34140da7b5fd9ae6
Parent:     0d0e445543703d3294a16a17a4606c9eade7afcb
Author:     Phil Pennock <pdp@???>
AuthorDate: Mon Oct 3 19:16:36 2011 -0400
Committer:  Phil Pennock <pdp@???>
CommitDate: Mon Oct 3 19:16:36 2011 -0400


    source referenced version.sh file always


    Tested for version.sh in cwd, but used . to source, assuming that
    would pull in file from cwd.  True on BSD (checked after $PATH) but
    not part of POSIX and not true for bash when in POSIX mode.
---
 src/scripts/reversion |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/src/scripts/reversion b/src/scripts/reversion
index 7bc56f6..32a867f 100755
--- a/src/scripts/reversion
+++ b/src/scripts/reversion
@@ -5,8 +5,8 @@
# Read version information that was generated by a previous run of
# this script, or during the release process.

-if   [ -f version.sh ]
-then .    version.sh
+if   [ -f ./version.sh ]
+then .    ./version.sh
 elif [ -f ../src/version.sh ]
 then .    ../src/version.sh
 fi