From 9a71a4f756e768d0c1a25f17f5041897bcaea8e8 Mon Sep 17 00:00:00 2001
From: Clifford Wolf <clifford@clifford.at>
Date: Thu, 15 Jul 2004 21:18:39 +0000
Subject: [PATCH] Clifford Wolf: 	vim syntax highlighting workaround for
 Build-Tools

[2004071309510409166] (https://www.rocklinux.net/submaster)



git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@3588 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc
---
 scripts/Build-Tools | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/scripts/Build-Tools b/scripts/Build-Tools
index e6a5cb43e..0270d2797 100755
--- a/scripts/Build-Tools
+++ b/scripts/Build-Tools
@@ -176,16 +176,16 @@ if [ ! -f build/$ROCKCFG_ID/ROCK/$toolsdir/.lastupdate ] ; then
 	done < <( bash scripts/xfind.sh package/. target/$target/. misc/. -name 'wrappers.in' )
 	#
 	echo_status "Building $toolsdir/wrapper/strip_wrapper."
-	cat << 'EOT' > build/$ROCKCFG_ID/ROCK/$toolsdir/wrapper/strip_wrapper.$$
+	cat << EOT > build/$ROCKCFG_ID/ROCK/$toolsdir/wrapper/strip_wrapper.$$
 #!/bin/sh
-if [ "$STRIP_WRAPPER_NOLOOP" = 1 ] ; then
+if [ "\$STRIP_WRAPPER_NOLOOP" = 1 ] ; then
 	echo "Aaaaaeik! Strip wrapper is looping!" >&2
 	exit 1
 fi
-if [ "$ROCKCFG_DEBUG" = 0 ] ; then
-	PATH=${PATH//$STRIP_WRAPPER_MYPATH:/}
+if [ "\$ROCKCFG_DEBUG" = 0 ] ; then
+	PATH=\${PATH//\$STRIP_WRAPPER_MYPATH:/}
 	export STRIP_WRAPPER_NOLOOP=1
-	exec "`basename $0`" "$@"
+	exec "\$( basename \$0 )" "\$@"
 fi
 exit 0
 EOT