Bug 88391 - New port: misc/loop is a shell programming utility that prints to stdout a series of numbers from `start' to `end'
Summary: New port: misc/loop is a shell programming utility that prints to stdout a se...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Pav Lucistnik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-02 09:50 UTC by freebsd
Modified: 2005-11-12 11:55 UTC (History)
0 users

See Also:


Attachments
file.shar (1.95 KB, text/plain)
2005-11-02 09:50 UTC, freebsd
no flags Details
loop.shar (2.10 KB, text/plain)
2005-11-12 11:36 UTC, murray
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description freebsd 2005-11-02 09:50:20 UTC
	A shell programming utility that prints to stdout a series of numbers from `start' to `end'
Comment 1 Sam Lawrance freebsd_committer freebsd_triage 2005-11-03 05:11:22 UTC
State Changed
From-To: open->feedback

Can this utility do anything that can not be done using jot(1)?
Comment 2 murray 2005-11-08 10:20:02 UTC
Hmm, not really, I guess.  The syntax is arguably more straightforward than
jot (closer to gnu 'seq', but it can do more than that utility--hex and octal
output, for example).  To print the range 1-20 with this utility is 'loop 1
20', whereas with jot it's 'jot 20 1'.

I think it's possible to use this utility without reading the man page, which
I can't say for jot.  Could just be me.

Murray
Comment 3 Marcus Alves Grando freebsd_committer freebsd_triage 2005-11-09 22:40:41 UTC
State Changed
From-To: feedback->open

Feedback received
Comment 4 Pav Lucistnik freebsd_committer freebsd_triage 2005-11-12 10:45:27 UTC
State Changed
From-To: open->feedback

Does not fetch: 

=> loop-1.0.tar.gz doesn't seem to exist in /usr/ports/distfiles/. 
=> Attempting to fetch from http://www.nesbitt.ca/downloads/. 
fetch: http://www.nesbitt.ca/downloads/loop-1.0.tar.gz: size mismatch: expected 2012, actual 2007 

Please, also, trim the COMMENT to allowed 70 chars and add WWW: at the end 
of pkg-descr with link to software's homepage. 


Comment 5 Pav Lucistnik freebsd_committer freebsd_triage 2005-11-12 10:45:27 UTC
Responsible Changed
From-To: freebsd-ports-bugs->pav

Poke
Comment 6 murray 2005-11-12 11:22:03 UTC
Thanks for the feedback.  I've modified the WWW: and COMMENT as you suggested.

I also rebuilt the distinfo to reflect a change made to the contact information in loop-1.0.tar.gz

I've included the new shar below, but if I should re-submit it some other way, let me know.

# 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:
#
#       misc/loop/
#       misc/loop/files
#       misc/loop/files/patch-Makefile
#       misc/loop/pkg-descr
#       misc/loop/distinfo
#       misc/loop/Makefile
#
echo c - misc/loop/
mkdir -p misc/loop/ > /dev/null 2>&1
echo c - misc/loop/files
mkdir -p misc/loop/files > /dev/null 2>&1
echo x - misc/loop/files/patch-Makefile
sed 's/^X//' >misc/loop/files/patch-Makefile << 'END-of-misc/loop/files/patch-Makefile'
X--- Makefile.orig      Wed Nov  2 01:23:17 2005
X+++ Makefile   Wed Nov  2 01:18:17 2005
X@@ -1,7 +1,7 @@
X
X-CC = gcc
X-CFLAGS = -Wall -O
X-DESTDIR = /usr/local
X+CC ?= gcc
X+CFLAGS += -Wall
X+DESTDIR = ${PREFIX}
X
X loop:
X       ${CC} ${CFLAGS} -o loop loop.c
END-of-misc/loop/files/patch-Makefile
echo x - misc/loop/pkg-descr
sed 's/^X//' >misc/loop/pkg-descr << 'END-of-misc/loop/pkg-descr'
XPrints to stdout a series of numbers from `start' to `end', with
Xoptional increment and zero-padded field width.  Hex (-x) or octal
X(-o) output formats are available.  Negative numbers are allowed,
Xand a negative `increment' does the expected thing.
X
XWWW: http://www.nesbitt.ca/downloads/loop/
END-of-misc/loop/pkg-descr
echo x - misc/loop/distinfo
sed 's/^X//' >misc/loop/distinfo << 'END-of-misc/loop/distinfo'
XMD5 (loop-1.0.tar.gz) = d4454ed2d1b921733a225621bc508c68
XSIZE (loop-1.0.tar.gz) = 2012
END-of-misc/loop/distinfo
echo x - misc/loop/Makefile
sed 's/^X//' >misc/loop/Makefile << 'END-of-misc/loop/Makefile'
X# New ports collection makefile for:   loop
X# Date created:        12 November 2005
X# Whom:                Murray Nesbitt <freebsd@nesbitt.ca>
X#
X# $FreeBSD$
X#
X
XPORTNAME=      loop
XPORTVERSION=   1.0
XCATEGORIES=    misc
XMASTER_SITES=  http://www.nesbitt.ca/downloads/loop/
X
XMAINTAINER=    freebsd@nesbitt.ca
XCOMMENT=       Prints to stdout a series of numbers from `start' to `end'.
X
XMAN1=          loop.1
XMANCOMPRESSED= yes
XPLIST_FILES=   bin/loop
X
X.include <bsd.port.mk>
END-of-misc/loop/Makefile
exit
Comment 7 Pav Lucistnik freebsd_committer freebsd_triage 2005-11-12 11:26:43 UTC
Murray Nesbitt pí¹e v so 12. 11. 2005 v 03:22 -0800:

> Thanks for the feedback.  I've modified the WWW: and COMMENT as you suggested.
> 
> I also rebuilt the distinfo to reflect a change made to the contact information in loop-1.0.tar.gz


> XMD5 (loop-1.0.tar.gz) = d4454ed2d1b921733a225621bc508c68
> XSIZE (loop-1.0.tar.gz) = 2012


Had you really? This is same as in original submission.

Also, please make sure that tabs remain tabs and are not replaced with
spaces by your mailer.

-- 
Pav Lucistnik <pav@oook.cz>
              <pav@FreeBSD.org>

Maybe I should go ask that elvish wizard standing over there
(YES A REAL ELF IS STANDING IN MY ROOM!),
he should be able to tell me.
Comment 8 murray 2005-11-12 11:29:05 UTC
Argh.  I regenerated distinfo without removing distfiles/loop-1.0.tar.gz

Corrected shar is below....


# 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:
#
#       misc/loop/
#       misc/loop/files
#       misc/loop/files/patch-Makefile
#       misc/loop/pkg-descr
#       misc/loop/distinfo
#       misc/loop/Makefile
#
echo c - misc/loop/
mkdir -p misc/loop/ > /dev/null 2>&1
echo c - misc/loop/files
mkdir -p misc/loop/files > /dev/null 2>&1
echo x - misc/loop/files/patch-Makefile
sed 's/^X//' >misc/loop/files/patch-Makefile << 'END-of-misc/loop/files/patch-Makefile'
X--- Makefile.orig      Wed Nov  2 01:23:17 2005
X+++ Makefile   Wed Nov  2 01:18:17 2005
X@@ -1,7 +1,7 @@
X
X-CC = gcc
X-CFLAGS = -Wall -O
X-DESTDIR = /usr/local
X+CC ?= gcc
X+CFLAGS += -Wall
X+DESTDIR = ${PREFIX}
X
X loop:
X       ${CC} ${CFLAGS} -o loop loop.c
END-of-misc/loop/files/patch-Makefile
echo x - misc/loop/pkg-descr
sed 's/^X//' >misc/loop/pkg-descr << 'END-of-misc/loop/pkg-descr'
XPrints to stdout a series of numbers from `start' to `end', with
Xoptional increment and zero-padded field width.  Hex (-x) or octal
X(-o) output formats are available.  Negative numbers are allowed,
Xand a negative `increment' does the expected thing.
X
XWWW: http://www.nesbitt.ca/downloads/loop/
END-of-misc/loop/pkg-descr
echo x - misc/loop/distinfo
sed 's/^X//' >misc/loop/distinfo << 'END-of-misc/loop/distinfo'
XMD5 (loop-1.0.tar.gz) = 4655feb51abfb082a06035a3e7e36d4a
XSIZE (loop-1.0.tar.gz) = 2007
END-of-misc/loop/distinfo
echo x - misc/loop/Makefile
sed 's/^X//' >misc/loop/Makefile << 'END-of-misc/loop/Makefile'
X# New ports collection makefile for:   loop
X# Date created:        12 November 2005
X# Whom:                Murray Nesbitt <freebsd@nesbitt.ca>
X#
X# $FreeBSD$
X#
X
XPORTNAME=      loop
XPORTVERSION=   1.0
XCATEGORIES=    misc
XMASTER_SITES=  http://www.nesbitt.ca/downloads/loop/
X
XMAINTAINER=    freebsd@nesbitt.ca
XCOMMENT=       Prints to stdout a series of numbers from `start' to `end'.
X
XMAN1=          loop.1
XMANCOMPRESSED= yes
XPLIST_FILES=   bin/loop
X
X.include <bsd.port.mk>
END-of-misc/loop/Makefile
exit
Comment 9 murray 2005-11-12 11:36:20 UTC
Pav Lucistnik wrote:

> Also, please make sure that tabs remain tabs and are not replaced with
> spaces by your mailer.
 
I've attached the shar this time.  But will an attachment make it into the bug-followup?
Comment 10 Pav Lucistnik freebsd_committer freebsd_triage 2005-11-12 11:54:50 UTC
State Changed
From-To: feedback->closed

New port added, thank you!