From 28531d17072d363eafb0b7de1946a7cffef2f6f0 Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 25 Sep 2009 10:48:24 -0400 Subject: 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. --- configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'configure') diff --git a/configure b/configure index dbfec50242..116221602c 100755 --- a/configure +++ b/configure @@ -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" "$@" -- cgit v1.2.1