Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Mar 2006 05:18:48 GMT
From:      soc-andrew <soc-andrew@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 92560 for review
Message-ID:  <200603010518.k215Imhj001145@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=92560

Change 92560 by soc-andrew@soc-andrew_serv on 2006/03/01 05:18:15

	Make the LOCAL_SCRIPT script independent of where it is located

Affected files ...

.. //depot/projects/soc2005/bsdinstaller/scripts/build_patch.sh#10 edit

Differences ...

==== //depot/projects/soc2005/bsdinstaller/scripts/build_patch.sh#10 (text+ko) ====

@@ -28,13 +28,14 @@
 cd ../src
 
 echo "#!/bin/sh" > ${PATCH_DIR}/local_script.sh
+echo "BASE=\`dirname \$0\`" >> ${PATCH_DIR}/local_script.sh
 echo "cd \${CHROOTDIR}/usr/src" >> ${PATCH_DIR}/local_script.sh
 
 for _dir in ${DIRS}; do
 	dir=`echo ${_dir} | sed "s/:.*$//"`
 	name=`echo ${_dir} | sed "s/^[^:]*://"`
 	tar -cf ${PATCH_DIR}/bsd_installer_$name.tar $dir
-	echo "tar xf ${PATCH_DIR}/bsd_installer_$name.tar" >> ${PATCH_DIR}/local_script.sh
+	echo "tar xf \${BASE}/bsd_installer_$name.tar" >> ${PATCH_DIR}/local_script.sh
 done
 
 chmod +x ${PATCH_DIR}/local_script.sh



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200603010518.k215Imhj001145>