diff options
author | Dirk Wallenstein <halsmit@t-online.de> | 2011-03-13 17:28:58 +0100 |
---|---|---|
committer | Dan Nicholson <dbn.lists@gmail.com> | 2011-03-13 18:40:19 -0700 |
commit | 744e99dd729941a5e55704a4662425594882f388 (patch) | |
tree | c7423a8891805fff4d3ee21f2591fd0b8f205d6e | |
parent | 2d2a543ed09a4ff2792910423a2359af3f693b60 (diff) |
release.sh: Find modular directory through symlinks
To find the auxiliary script that updates a moduleset, consider the case
where the main script is accessed through a symlink, and resolve that
first.
Signed-off-by: Dirk Wallenstein <halsmit@t-online.de>
Reviewed-by: Dan Nicholson <dbn.lists@gmail.com>
-rwxr-xr-x | release.sh | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -253,7 +253,8 @@ echo " at: $announce" if [ -n "$moduleset" ]; then echo "updating moduleset $moduleset" - modulardir=`dirname "$0"` + real_script_path=`readlink -f "$0"` + modulardir=`dirname "$real_script_path"` sha1sum=`cd $tarball_dir && $SHA1SUM $targz | cut -d' ' -f1` $modulardir/update-moduleset.sh $moduleset $sha1sum $targz fi |