summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirk Wallenstein <halsmit@t-online.de>2011-03-13 17:28:58 +0100
committerDan Nicholson <dbn.lists@gmail.com>2011-03-13 18:40:19 -0700
commit744e99dd729941a5e55704a4662425594882f388 (patch)
treec7423a8891805fff4d3ee21f2591fd0b8f205d6e
parent2d2a543ed09a4ff2792910423a2359af3f693b60 (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-xrelease.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/release.sh b/release.sh
index 5228a30..df1caf8 100755
--- a/release.sh
+++ b/release.sh
@@ -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