From owner-p4-projects@FreeBSD.ORG Wed Aug 2 22:38:37 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id C13C216A4E7; Wed, 2 Aug 2006 22:38:37 +0000 (UTC) X-Original-To: perforce@FreeBSD.org Delivered-To: perforce@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9A2B116A4DA for ; Wed, 2 Aug 2006 22:38:37 +0000 (UTC) (envelope-from gabor@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0ED4B43D70 for ; Wed, 2 Aug 2006 22:38:32 +0000 (GMT) (envelope-from gabor@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k72McVnk018978 for ; Wed, 2 Aug 2006 22:38:31 GMT (envelope-from gabor@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k72McV8C018975 for perforce@freebsd.org; Wed, 2 Aug 2006 22:38:31 GMT (envelope-from gabor@FreeBSD.org) Date: Wed, 2 Aug 2006 22:38:31 GMT Message-Id: <200608022238.k72McV8C018975@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to gabor@FreeBSD.org using -f From: Gabor Kovesdan To: Perforce Change Reviews Cc: Subject: PERFORCE change 103069 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Aug 2006 22:38:38 -0000 http://perforce.freebsd.org/chv.cgi?CH=103069 Change 103069 by gabor@gabor_spitfire on 2006/08/02 22:38:17 - Fix some syntactical errors in do-fetch.sh - Clean up FETCH_SCRIPT_ENV in bsd.port.mk Affected files ... .. //depot/projects/soc2006/gabor_ports/Mk/bsd.port.mk#66 edit .. //depot/projects/soc2006/gabor_ports/Tools/scripts/do-fetch.sh#16 edit Differences ... ==== //depot/projects/soc2006/gabor_ports/Mk/bsd.port.mk#66 (text+ko) ==== @@ -2138,19 +2138,13 @@ FETCH_SCRIPT=${PORTSDIR}/Tools/scripts/do-fetch.sh FETCH_SCRIPT_ENV= AWK="${AWK}" BASENAME="${BASENAME}" ECHO_CMD="${ECHO_CMD}" ECHO_MSG="${ECHO_MSG}" \ - GREP="${GREP}" MKDIR="${MKDIR}" SED="${SED}" SETENV="${SETENV}" \ + GREP="${GREP}" MKDIR="${MKDIR}" SED="${SED}" SETENV="${SETENV}" TR="${TR} \ FETCH_CMD="${FETCH_CMD}" \ FETCH_BEFORE_ARGS="${FETCH_BEFORE_ARGS}" FETCH_AFTER_ARGS="${FETCH_AFTER_ARGS}" \ _DISTDIR="${_DISTDIR}" DIST_SUBDIR="${DIST_SUBDIR}" DISTFILES="${DISTFILES}" \ FORCE_FETCH="${FORCE_FETCH}" NO_CHECKSUM="${NO_CHECKSUM}" MD5_FILE="${MD5_FILE}" \ - _MASTER_SITES="${_MASTER_SITES}" \ - _MASTER_SITE_OVERRIDE="${MASTER_SITE_OVERRIDE}" \ - _MASTER_SITE_BACKUP="${_MASTER_SITE_BACKUP}" MASTER_SORT_AWK="${MASTER_SORT_AWK}" \ - SORTED_MASTER_SITES_DEFAULT_CMD="${SORTED_MASTER_SITES_DEFAULT_CMD}" \ _RANDOMIZE_SITES="${_RANDOMIZE_SITES}" \ - PATCHFILES="${PATCHFILES}" \ - SORTED_PATCH_SITES_DEFAULT_CMD="${SORTED_PATCH_SITES_DEFAULT_CMD}" - + PATCHFILES="${PATCHFILES}" .if exists(/usr/bin/fetch) FETCH_CMD?= /usr/bin/fetch -ARr ==== //depot/projects/soc2006/gabor_ports/Tools/scripts/do-fetch.sh#16 (text+ko) ==== @@ -4,10 +4,10 @@ for _S in ${MASTER_SITES}; do __TMP= `${ECHO_CMD} ${_S} | ${SED} "s@/:[^/:]+$@/@}"` _S_TEMP= `${ECHO_CMD} ${_S} | ${SED} -e "s/^${__TMP}//" -e "/^://"` - if [ -n "${_S_TEMP}" ] ; then + if [ -n "${_S_TEMP}" ] ; then for _group in `${ECHO_CMD} ${_S_TEMP} | ${SED} "s/,/ /g"`; do _G_TEMP= ${_group} - if ${_G_TEMP} == all || ${_G_TEMP} == ALL || ${_G_TEMP} == default + if ${_G_TEMP} == all || ${_G_TEMP} == ALL || ${_G_TEMP} == default; then ${ECHO_MSG} "Makefile error: the words all, ALL and default are reserved and cannot be" ${ECHO_MSG} "used in group definitions. Please fix your MASTER_SITES." exit 1 @@ -31,7 +31,7 @@ ${ECHO_MSG} "used in group definitions. Please fix your MASTER_SITES." exit 1 fi - if [ -n "${_MASTER_SITES_${_group}}" ] ; then + if [ -n "$${_MASTER_SITES_${_group}}" ] ; then __SUFFIX_TMP= `${ECHO_CMD} ${_S} | ${SED} "s@^(.*)/:[^/:]+$@\1@"` _MASTER_SITE_SUBDIR_${_group}= $${_MASTER_SITE_SUBDIR_${_group}} ${__SUFFIX_TMP} fi