diff options
author | Brad King <brad.king@kitware.com> | 2009-09-25 10:48:24 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-09-25 10:48:24 -0400 |
commit | 28531d17072d363eafb0b7de1946a7cffef2f6f0 (patch) | |
tree | 248c6268dedfcfa423a0d047e0f1e4a074181ace /configure | |
parent | d468145fa2e5abbba2b9f6ea32eab206738312b4 (diff) | |
download | cmake-28531d17072d363eafb0b7de1946a7cffef2f6f0.tar.gz |
Simplify bootstrap script source dir detection
This teaches the bootstrap shell script to detect the CMake source
directory from which it is executed using a simpler idiom.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,3 +1,3 @@ -#! /bin/sh -cmake_source_dir=`echo $0 | sed -n '/\//{s/\/[^\/]*$//;p;}'` +#!/bin/sh +cmake_source_dir=`cd "\`dirname \"$0\"\`";pwd` exec "${cmake_source_dir}/bootstrap" "$@" |