From owner-freebsd-ports@FreeBSD.ORG Sun Jul 27 07:57:05 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E678837B401 for ; Sun, 27 Jul 2003 07:57:05 -0700 (PDT) Received: from mail.liwing.de (mail.liwing.de [213.70.188.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 56F7043F75 for ; Sun, 27 Jul 2003 07:57:04 -0700 (PDT) (envelope-from rehsack@liwing.de) Received: (qmail 52439 invoked from network); 27 Jul 2003 14:57:02 -0000 Received: from stingray.liwing.de (HELO liwing.de) ([213.70.188.164]) (envelope-sender ) by mail.liwing.de (qmail-ldap-1.03) with SMTP for ; 27 Jul 2003 14:57:02 -0000 Message-ID: <3F23E83F.50601@liwing.de> Date: Sun, 27 Jul 2003 16:57:03 +0200 From: Jens Rehsack Organization: LiWing IT-Services User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: de-de, de, en-us, en MIME-Version: 1.0 To: Sergei Kolobov References: <20030727132837.GA730@chetwood.ru> In-Reply-To: <20030727132837.GA730@chetwood.ru> Content-Type: multipart/mixed; boundary="------------030805090204020408050101" cc: freebsd-ports@FreeBSD.org Subject: Re: ANNOUNCE: FreeBSD Port Tools 0.20 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jul 2003 14:57:06 -0000 This is a multi-part message in MIME format. --------------030805090204020408050101 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit On 27.07.2003 15:28, Sergei Kolobov wrote: > INTRODUCTION > ============ > > FreeBSD Port Tools consist of the following small /bin/sh scripts: > - testport: automate testing a new port or a port update > - pr-new: submit a PR for a new port > - pr-update: submit a PR with a port update to a newer version > - pr-change: submit a PR with a port change (but not update) [...] > NOTE: the Port Tools are currently in alpha state. > I would appreciate any feedback, comments or suggestions for improvement. > Patches are welcome. Contact me at . > Hi Sergei, great idea to make such tools public. As long I don't work everytime with cvs but with cvsup, too, I used attached script with a patched send-pr. It seems not so good as yours but it doesn't require "a working copy of the port checked out of CVS". I rank that very high, maybe there is a way to combine both ways. Best, Jens --------------030805090204020408050101 Content-Type: text/plain; name="difflist" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="difflist" #!/bin/sh usage() { cat <] [-l ] file-expr expression to identify the modified file, eg. pkg-* relative location location relative to current dir to search within EOF exit 1 } newExpr="*" location="" while getopts l:e: options do case $options in e) newExpr=$OPTARG ;; l) location=$OPTARG ;; h) usage; break;; \?) usage break;; esac done origExpr=${newExpr}.orig base=`pwd`/ wd="${base}${location}" for filename in `find ${wd} -name "${origExpr}"` do fn=`echo ${filename}|sed "s|${base}||"` ofn=`echo ${fn}|sed "s/.orig//"` echo "Index: ${ofn}" echo "===================================================================" echo "diff -u ${fn} ${ofn}" diff -u ${fn} ${ofn} done --------------030805090204020408050101 Content-Type: text/plain; name="submit-pr" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="submit-pr" #!/bin/sh # $Id$ usage() { cat <] [-c ] [-a ] [-l ] [-s ] [-t ] [-o ] [-u ] [-m ] location of port in ports-tree (eg. lang/php4) e-mail addresses to put in Cc: of mail pattern to match the patch files one of [ sw-bug | doc-bug | change-request | update | maintainer-update ] one of [ non-critical | serious | critical ] one of the entries from /etc/gnats/freefall one of [ low | medium | high ] another user name, eg. when name differs from mail user name another domain name for sending mail from/to EOF exit 1 } cc="Jens Rehsack " organization="LiWing IT-Services" severity="non-critical" # [ non-critical | serious | critical ] priority="medium" # [ low | medium | high ] category="ports" # ${pr_file} ${EDITOR} ${pr_file} echo "The PR to send is in ${pr_file}" --------------030805090204020408050101 Content-Type: text/plain; name="patch-send-pr.sh.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="patch-send-pr.sh.diff" --- gnu/usr.bin/send-pr/send-pr.sh.orig Sat Mar 22 10:31:24 2003 +++ gnu/usr.bin/send-pr/send-pr.sh Wed Jun 25 09:58:02 2003 @@ -138,6 +138,9 @@ BATCH= CC= SEVERITY_C= +PRIORITY_C= +CATEGORY_C= +CLASS_C= while [ $# -gt 0 ]; do case "$1" in @@ -160,6 +163,15 @@ -s | --severity) if [ $# -eq 1 ]; then echo "$USAGE"; exit 1; fi shift ; SEVERITY_C="$1" ;; + --priority) if [ $# -eq 1 ]; then echo "$USAGE"; exit 1; fi + shift ; PRIORITY_C="$1" + ;; + --category) if [ $# -eq 1 ]; then echo "$USAGE"; exit 1; fi + shift ; CATEGORY_C="$1" + ;; + --class) if [ $# -eq 1 ]; then echo "$USAGE"; exit 1; fi + shift ; CLASS_C="$1" + ;; -p | -P | --print) PRINT=true ;; -L | --list) FORMAT=norm ;; -l | -CL | --lisp) FORMAT=lisp ;; @@ -247,9 +259,15 @@ if [ -z "$SEVERITY_C" ]; then SEVERITY_C='<[ non-critical | serious | critical ] (one line)>' fi -PRIORITY_C='<[ low | medium | high ] (one line)>' -CATEGORY_C='' -CLASS_C='<[ sw-bug | doc-bug | change-request | update | maintainer-update ] (one line)>' +if [ -z "$PRIORITY_C" ]; then + PRIORITY_C='<[ low | medium | high ] (one line)>' +fi +if [ -z "$CATEGORY_C" ]; then + CATEGORY_C='' +fi +if [ -z "$CLASS_C" ]; then + CLASS_C='<[ sw-bug | doc-bug | change-request | update | maintainer-update ] (one line)>' +fi RELEASE_C='' ENVIRONMENT_C='' DESCRIPTION_C='' --------------030805090204020408050101--