Date: Wed, 04 Jun 2003 18:36:19 +0400 From: Sergey Matveychuk <sem@ciam.ru> To: freebsd-gnats-submit@FreeBSD.org, kirk@strauser.com, ports@freebsd.org Subject: Re: ports/52790: New port: shells/bash-completion Message-ID: <3EDE03E3.8090102@ciam.ru>
next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------030103090609070302060700 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit I'v fixed patch-aa, added depends on shell/bash2, fixed pkg-message and tested. ---- Sem. --------------030103090609070302060700 Content-Type: text/plain; name="bash-completion.shar" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="bash-completion.shar" # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # bash-completion # bash-completion/Makefile # bash-completion/distinfo # bash-completion/pkg-descr # bash-completion/pkg-plist # bash-completion/files # bash-completion/files/patch-aa # bash-completion/pkg-message # echo c - bash-completion mkdir -p bash-completion > /dev/null 2>&1 echo x - bash-completion/Makefile sed 's/^X//' >bash-completion/Makefile << 'END-of-bash-completion/Makefile' X# New ports collection makefile for: bash_completion X# Date created: 29 May 2003 X# Whom: kirk@strauser.com X# X# $FreeBSD$ X# X XPORTNAME= bash-completion XPORTVERSION= 20030527 XCATEGORIES= shells XMASTER_SITES= http://www.caliban.org/files/bash/ X XMAINTAINER= kirk@strauser.com XCOMMENT= Programmable completion library for Bash 2.04 and up X XRUN_DEPENDS= bash:${PORTSDIR}/shells/bash2 X XWRKSRC= ${WRKDIR}/bash_completion XNO_BUILD= yes X XPKGMESSAGE= ${WRKDIR}/pkg-message X Xpre-patch: X @${SED} 's|%%PREFIX%%|${PREFIX}|g' ${PKGDIR}/pkg-message >${PKGMESSAGE} X Xdo-install: X ${INSTALL_DATA} ${WRKSRC}/bash_completion ${PREFIX}/etc/bash_completion X Xpost-install: X @${CAT} ${PKGMESSAGE} X X.include <bsd.port.mk> END-of-bash-completion/Makefile echo x - bash-completion/distinfo sed 's/^X//' >bash-completion/distinfo << 'END-of-bash-completion/distinfo' XMD5 (bash-completion-20030527.tar.gz) = 3b4de4c03804fa97fd3123443a9667c6 END-of-bash-completion/distinfo echo x - bash-completion/pkg-descr sed 's/^X//' >bash-completion/pkg-descr << 'END-of-bash-completion/pkg-descr' XThis is a programmable completion library for bash2 users. It features the Xability to tab-complete arguments for many common programs. X XWWW: http://www.caliban.org/bash/index.shtml X X- Kirk Strauser Xkirk@strauser.com END-of-bash-completion/pkg-descr echo x - bash-completion/pkg-plist sed 's/^X//' >bash-completion/pkg-plist << 'END-of-bash-completion/pkg-plist' Xetc/bash_completion END-of-bash-completion/pkg-plist echo c - bash-completion/files mkdir -p bash-completion/files > /dev/null 2>&1 echo x - bash-completion/files/patch-aa sed 's/^X//' >bash-completion/files/patch-aa << 'END-of-bash-completion/files/patch-aa' X--- bash_completion.orig Mon May 26 22:22:44 2003 X+++ bash_completion Wed Jun 4 18:02:33 2003 X@@ -27,14 +27,14 @@ X if [ -n "$FUNCNAME" ]; then X # we're being sourced from within a function, so we can't use X # 'declare', as this will create local variables within a function X- BASH_COMPLETION=${BASH_COMPLETION:-/etc/bash_completion} 2>/dev/null X- BASH_COMPLETION_DIR=${BASH_COMPLETION_DIR:=/etc/bash_completion.d} \ X+ BASH_COMPLETION=${BASH_COMPLETION:-/usr/local/etc/bash_completion} 2>/dev/null X+ BASH_COMPLETION_DIR=${BASH_COMPLETION_DIR:=/usr/local/etc/bash_completion.d} \ X 2>/dev/null X else X- declare -r BASH_COMPLETION=${BASH_COMPLETION:-/etc/bash_completion} \ X+ declare -r BASH_COMPLETION=${BASH_COMPLETION:-/usr/local/etc/bash_completion} \ X 2>/dev/null X declare -r \ X- BASH_COMPLETION_DIR=${BASH_COMPLETION_DIR:=/etc/bash_completion.d} \ X+ BASH_COMPLETION_DIR=${BASH_COMPLETION_DIR:=/usr/local/etc/bash_completion.d} \ X 2>/dev/null X fi X END-of-bash-completion/files/patch-aa echo x - bash-completion/pkg-message sed 's/^X//' >bash-completion/pkg-message << 'END-of-bash-completion/pkg-message' X XThe programmable completion library is not enabled by default for various Xreasons. To use it, you should source %%PREFIX%%/etc/bash_completion from Xyour .bashrc file. For example: X X if [ -f %%PREFIX%%/etc/bash_completion ]; then X . %%PREFIX%%/etc/bash_completion X fi X END-of-bash-completion/pkg-message exit --------------030103090609070302060700--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3EDE03E3.8090102>