Commits

dwt committed 6a07dfe

more space in path to build folder fixes

  • Participants
  • Parent commits 79ef5c7

Comments (0)

Files changed (1)

File Dependencies/phases/utility.sh

 # Logs the given commands output to $LOG_FILE
 #
 log() {
-	local localPWD=`pwd`
+	local localPWD="`pwd`"
 	echo "
 
 Running command:
 	${localPWD}/${@:1}
-" >> ${LOG_FILE}
+" >> "${LOG_FILE}"
 
 	echo "
 
 Running command:
 	${localPWD}/${@:1}
-" >> ${ERR_FILE}
+" >> "${ERR_FILE}"
 
 	(
 		${@:1}
-	) >> ${LOG_FILE} 2>> ${ERR_FILE}
+	) >> "${LOG_FILE}" 2>> "${ERR_FILE}"
 }
 
 ##
 # Tries to execute a command silently, and catches the error if it fails.
 #
 quiet() {
-	${@:1} &> /dev/null || true
+	"${@:1}" &> /dev/null || true
 }
 
 ##
 		local files="${ROOTDIR}/sandbox/root-${ARCHS[0]}/lib/pkgconfig/*"
 		for f in ${files} ; do
 			status "patching pkgconfig file: ${f}"
-			local basename=`basename ${f}`
+			local basename=`basename "${f}"`
 			local SEDREP=`echo $ROOTDIR | awk '{gsub("\\\\\/", "\\\\\\/");print}'`
 			local SEDPAT="s/^prefix=.*/prefix=${SEDREP}\\/build/"
 			sed -e "${SEDPAT}" "${f}" > "${ROOTDIR}/build/lib/pkgconfig/${basename}"
 	local files="${ROOTDIR}/sandbox/root-${ARCHS[0]}/lib/*.la"
 	for f in ${files} ; do
 		status "patching .la file: ${f}"
-		local basename=`basename ${f}`
+		local basename=`basename "${f}"`
 		local SEDREP=`echo $ROOTDIR | awk '{gsub("\\\\\/", "\\\\\\/");print}'`
 		local SEDPAT="s/^libdir=.*/libdir=\'${SEDREP}\\/build\\/lib\'/"
 		sed -e "${SEDPAT}" "${f}" > "${ROOTDIR}/build/lib/${basename}"