Date: Wed, 18 Apr 2007 14:48:17 -0400 From: "kitsune " <vvelox@vvelox.net> To: "FreeBSD gnats submit" <FreeBSD-gnats-submit@FreeBSD.org> Subject: ports/111829: New port: devel/shell-include A include system for shell scripts Message-ID: <1176922097.79173@vixen42.vulpes> Resent-Message-ID: <200704181900.l3IJ0IiC010134@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 111829 >Category: ports >Synopsis: New port: devel/shell-include A include system for shell scripts >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Apr 18 19:00:17 GMT 2007 >Closed-Date: >Last-Modified: >Originator: kitsune >Release: FreeBSD 6.2-STABLE i386 >Organization: >Environment: System: FreeBSD 6.2-STABLE #3: Mon Mar 19 02:00:40 EDT 2007 root@vixen42.vulpes:/usr/obj/usr/src/sys/vixen42-2 >Description: Allows include files to be used in shells the same way they are with C. The file with the include code needs to be included. This is done by figuring out were it is located using which. . `which sh-include` will take care of it for sh. sh example... . `which sh-include` include fileGetLine line=`fileGetLine /etc/group 4` resubmission.... it looks like my the other did not go through... >How-To-Repeat: 1: notice this is not in the ports, unshar it, and install it... 2: 3: avoid the scary flying monkies 4: enjoy >Fix: --- shell-include.shar begins here --- # 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: # # shell-include/ # shell-include/Makefile # shell-include/distinfo # shell-include/pkg-descr # shell-include/pkg-plist # echo c - shell-include/ mkdir -p shell-include/ > /dev/null 2>&1 echo x - shell-include/Makefile sed 's/^X//' >shell-include/Makefile << 'END-of-shell-include/Makefile' X# New ports collection makefile for: qar-bufo X# Date created: 18 April 2007 X# Whom: Zane C. Bowers X# X# $FreeBSD$ X# X XPORTNAME= shell-include XPORTVERSION= 0.1.0 XCATEGORIES= devel XMASTER_SITES= http://vvelox.net/src/shell-include/ XDISTNAME= ${PORTNAME}-${PORTVERSION} XEXTRACT_SUFX= .tgz X XMAINTAINER= vvelox@vvelox.net XCOMMENT= A include system for shell scripts X XUSE_PERL5= yes X XMAN3= random::shortIntRandom.3 \ X random.3 \ X fileGetLine.3 X XMAN7= shell-include.7 X X#nothing to configure Xdo-configure: X @${ECHO} -n X X#nothing to build Xdo-build: X @${ECHO} -n X Xdo-install: X @${EXEC} cd ${PORTSDIR}/devel/shell-include/work/shell-include/ X @${EXEC} cd ${PORTSDIR}/devel/shell-include/work/shell-include/ ; ${PORTSDIR}/devel/shell-include/work/shell-include/install ${PREFIX} X X.include <bsd.port.mk> END-of-shell-include/Makefile echo x - shell-include/distinfo sed 's/^X//' >shell-include/distinfo << 'END-of-shell-include/distinfo' XMD5 (shell-include-0.1.0.tgz) = eacec4e7476e09df1fd1da1a6ff9c1ac XSHA256 (shell-include-0.1.0.tgz) = 143d440d20bb761077e3a3f3295c66e2c0504ee35c875e7ccb4ffa1fafd70435 XSIZE (shell-include-0.1.0.tgz) = 4041 END-of-shell-include/distinfo echo x - shell-include/pkg-descr sed 's/^X//' >shell-include/pkg-descr << 'END-of-shell-include/pkg-descr' XAllows include files to be used in shells the same way they are with C. XThe file with the include code needs to be included. This is done by Xfiguring out were it is located using which. . `which sh-include` will Xtake care of it for sh. X Xsh example... X. `which sh-include` Xinclude fileGetLine Xline=`fileGetLine /etc/group 4` END-of-shell-include/pkg-descr echo x - shell-include/pkg-plist sed 's/^X//' >shell-include/pkg-plist << 'END-of-shell-include/pkg-plist' Xbin/sh-include Xbin/bash-include Xlibexec/shell-include/sh/random Xlibexec/shell-include/sh/fileGetLine X@dirrm libexec/shell-include/sh Xlibexec/shell-include/bash/random Xlibexec/shell-include/bash/fileGetLine X@dirrm libexec/shell-include/bash X@dirrm libexec/shell-include END-of-shell-include/pkg-plist exit --- shell-include.shar ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1176922097.79173>