PERFORCE change 92560 for review
soc-andrew
soc-andrew at FreeBSD.org
Tue Feb 28 21:19:07 PST 2006
http://perforce.freebsd.org/chv.cgi?CH=92560
Change 92560 by soc-andrew at 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
More information about the p4-projects
mailing list