From c8a7494f7e1757230a1138fed9222b97959b2789 Mon Sep 17 00:00:00 2001 From: Martin Wilke Date: Fri, 20 Apr 2007 21:36:35 +0000 Subject: 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` PR: ports/111829 Submitted by: Zane C. Bowers --- shells/shell-include/Makefile | 39 +++++++++++++++++++++++++++++++++++++++ shells/shell-include/distinfo | 3 +++ shells/shell-include/pkg-descr | 9 +++++++++ shells/shell-include/pkg-plist | 9 +++++++++ 4 files changed, 60 insertions(+) create mode 100644 shells/shell-include/Makefile create mode 100644 shells/shell-include/distinfo create mode 100644 shells/shell-include/pkg-descr create mode 100644 shells/shell-include/pkg-plist (limited to 'shells/shell-include') diff --git a/shells/shell-include/Makefile b/shells/shell-include/Makefile new file mode 100644 index 000000000000..803394e15626 --- /dev/null +++ b/shells/shell-include/Makefile @@ -0,0 +1,39 @@ +# New ports collection makefile for: qar-bufo +# Date created: 18 April 2007 +# Whom: Zane C. Bowers +# +# $FreeBSD$ +# + +PORTNAME= shell-include +PORTVERSION= 0.1.1 +CATEGORIES= shells devel +MASTER_SITES= http://vvelox.net/src/shell-include/ +DISTNAME= ${PORTNAME}-${PORTVERSION} +EXTRACT_SUFX= .tgz + +MAINTAINER= vvelox@vvelox.net +COMMENT= A include system for shell scripts + +USE_PERL5= yes + +MAN3= random::shortIntRandom.3 \ + random.3 \ + fileGetLine.3 + +MAN7= shell-include.7 + +WRKSRC= ${WRKDIR}/${PORTNAME} + +#nothing to configure +do-configure: + @${ECHO} -n + +#nothing to build +do-build: + @${ECHO} -n + +do-install: + @${EXEC} cd ${WRKDIR}/${PORTNAME}/ ; ${WRKDIR}/${PORTNAME}/install ${PREFIX} + +.include diff --git a/shells/shell-include/distinfo b/shells/shell-include/distinfo new file mode 100644 index 000000000000..f4a0dfb62516 --- /dev/null +++ b/shells/shell-include/distinfo @@ -0,0 +1,3 @@ +MD5 (shell-include-0.1.1.tgz) = 2a08625a72c118fb4040e087e5f61a29 +SHA256 (shell-include-0.1.1.tgz) = fac3ae3e9b05dbefc9ddb01c6dffbbbd118428ec3a6b256fb124616bfb73052d +SIZE (shell-include-0.1.1.tgz) = 4039 diff --git a/shells/shell-include/pkg-descr b/shells/shell-include/pkg-descr new file mode 100644 index 000000000000..4fab44fa15ba --- /dev/null +++ b/shells/shell-include/pkg-descr @@ -0,0 +1,9 @@ +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` diff --git a/shells/shell-include/pkg-plist b/shells/shell-include/pkg-plist new file mode 100644 index 000000000000..3e4fe5e85fe5 --- /dev/null +++ b/shells/shell-include/pkg-plist @@ -0,0 +1,9 @@ +bin/sh-include +bin/bash-include +libexec/shell-include/sh/random +libexec/shell-include/sh/fileGetLine +@dirrm libexec/shell-include/sh +libexec/shell-include/bash/random +libexec/shell-include/bash/fileGetLine +@dirrm libexec/shell-include/bash +@dirrm libexec/shell-include -- cgit v1.2.3