aboutsummaryrefslogtreecommitdiff
path: root/Tools/scripts/addport
Commit message (Collapse)AuthorAgeFilesLines
...
* Refactor how we format the autofill message. With the slightly questionablePete Fritchman2004-01-061-34/+15
| | | | | | | | | | | Perl before, sometimes we would word wrap too soon. Now we should never generate a line more than 72 characters long (but as close to 72 characters long as we can without breaking up a word). Approved by: will (maintainer) Notes: svn path=/head/; revision=97436
* fetch(1)'s -b and -t options were deprecated years ago, so stop using them.Dag-Erling Smørgrav2003-11-121-1/+1
| | | | Notes: svn path=/head/; revision=93825
* Fix -l option comment removing obsolete pkg-comment reference.Alexander Nedotsukov2003-09-291-2/+2
| | | | | | | Approved by: will Notes: svn path=/head/; revision=89738
* When using addport on freefall, there's no need to ssh freefall once more toMathieu Arnold2003-09-021-1/+5
| | | | | | | | | use modulesupdate. Approved by: will Notes: svn path=/head/; revision=88364
* Update for post-repo-split. s/ncvs/pcvs/ so that the default root isPeter Wemm2003-02-281-4/+4
| | | | | | | pcvs.freebsd.org:/home/pcvs Notes: svn path=/head/; revision=76668
* Another try at fixing the "adding to CVSROOT/modules from remoteMario Sergio Fujikawa Ferreira2003-02-231-1/+1
| | | | | | | | | | | | hosts (non-freefall)" bug: add '-A' argument to ssh(1) command line for accessing host cointaining modules file. This should fix the bug for ssh-agent(1) users. Others can just switch to using ssh-agent(1). Approved by: will (maintainer) Notes: svn path=/head/; revision=76315
* Change how to get CATEGORIES tag from new port for slave port.Norikatsu Shigemura2003-02-161-2/+2
| | | | | | | Approved by: will Notes: svn path=/head/; revision=75655
* Catch up to new semantics of COMMENT variable (contains comment stringKris Kennaway2003-02-101-4/+1
| | | | | | | itself, instead of pointing to pkg-comment) Notes: svn path=/head/; revision=75230
* Attempt to defuse problems from developers who don't have the correctWill Andrews2003-01-301-0/+2
| | | | | | | ssh setup in order for addport to do CVSROOT/modules correctly. Notes: svn path=/head/; revision=74293
* Add both hungarian and portuguese l10n prefixes to syncronize withMario Sergio Fujikawa Ferreira2003-01-231-0/+2
| | | | | | | | | portlint port Approved by: maintainer Notes: svn path=/head/; revision=73839
* unbroke addport by petefAlan Eldridge2002-11-191-1/+2
| | | | Notes: svn path=/head/; revision=70490
* Use 'cvs ci -F ...' instead of setting the log file with EDITOR="cp ...".Pete Fritchman2002-11-131-3/+1
| | | | | | | | | | This fixes addport for me on -stable (cvs was erroring out), and also fixes addport when you have the EDITOR environment variable set. Approved by: will Notes: svn path=/head/; revision=70035
* Modifications to support ncvs.freebsd.org != freefall.freebsd.org. ThisWill Andrews2002-10-141-13/+14
| | | | | | | | | | actually simplifies some of the code and makes other parts more complicated. Tested by: www/mod_filter && (after bugfixes) sysutils/sjog Noticed by: ijliao (by way of peter) Notes: svn path=/head/; revision=68021
* Add l10n prefix to default module name.Hye-Shik Chang2002-07-071-2/+14
| | | | | | | Approved by: will Notes: svn path=/head/; revision=62540
* Support tools that don't have u@h syntax but h -l u.Will Andrews2002-01-301-1/+1
| | | | | | | Submitted by: eivind Notes: svn path=/head/; revision=54028
* Stopgap bugfix to avoid the case where a user invokes -t and ends up withWill Andrews2001-05-011-3/+4
| | | | | | | | | | | | | | a work/ dir in the repository placed there by addport without permission. Also restore the rcsids from the predecessors of this script by removing their $'s. If I had more time, I'd just revamp parts of this script. Submitted by: greid Apologies to: greid && cvs@ Notes: svn path=/head/; revision=42131
* Fix off-by-one error that was causing an infinite loop in some veryWill Andrews2001-01-161-1/+1
| | | | | | | | | | weird cases. AAARGGH!!! Discovered by: will, sobomax, alex Fix by: Dima Dorfman <dima@unixfreak.org> Notes: svn path=/head/; revision=37263
* Fix two bugs: pass $passenv to make *always*; remember that the initialWill Andrews2001-01-071-3/+3
| | | | | | | | | join() in the autofill algorithm doesn't need a space. Bugged by: alex Notes: svn path=/head/; revision=36877
* Fix breakage when someone uses -t option: pass DISTDIR environment variableWill Andrews2001-01-011-7/+9
| | | | | | | | | | | | | | to the extra testing's make procs. Fix _stupid_ mistake where -n option had no effect on hindering ``cvs add'' and CVSROOT/modules updating. Cosmetics; remove extra space in generated commit log message and fix the usage section's style in regards to options that take arguments. Add missing -g option's mention. Submitted by: assar (DISTDIR, CVSROOT/modules updating routine bugs) Notes: svn path=/head/; revision=36588
* Several changes. First, depend on another environment variable ratherWill Andrews2001-01-011-12/+14
| | | | | | | | | | | than CVSROOT (now ADDPCVSROOT) to avoid conflicts for people who normally set CVSROOT to something besides freefall (like myself). Second, allow autofill to work for non-PR additions by checking for a -l argument of -1. Third, remove the bogus $portname check in autofill that screws up if you are adding something with a PKGNAMEPREFIX (i.e. p5-). Notes: svn path=/head/; revision=36552
* Here's my holiday present to the ports team: new -l option allows you toWill Andrews2000-12-311-19/+95
| | | | | | | | | | | | | | | let portlint fill out your commit log message. It takes data from your port's Makefile and pkg-comment to generate this, then displays the resulting file and gives a chance to fix any problems. Also, change -c option to move the file to the temp directory. Since -c and -l option conflict, -l will take precedence. Move -c option down to where directories are parsed. Reviewed by: Jeremy Shaffner <jeremy@external.org> Notes: svn path=/head/; revision=36524
* Add new option: -c file : Pass a file containing the log message for theWill Andrews2000-12-301-3/+23
| | | | | | | | | | new port. Slight hack used to obtain absolute path for the file. I'll probably change that to make it copy the file to the tmpdir instead. For now, this provides a stepping stone to use to begin automating commit log messages - with, of course, a chance to edit the file again. Notes: svn path=/head/; revision=36452
* Add -g option to disable committing to CVSROOT/modules, useful if someoneWill Andrews2000-12-191-2/+5
| | | | | | | | | | | is going to commit a large number of ports and doesn't want to bloat the repo any more than necessary. Later on I'll add support to modulesupdate to do multiple modules at the same time. I should check that script in CVS, but nobody's repocopied non-ports-specific tools to src yet to my knowledge so I can't do that. Notes: svn path=/head/; revision=36084
* Functional modification: Make -n only apply to cvs commit, NOT *all*Will Andrews2000-12-081-3/+3
| | | | | | | | | | cvs ops. Many committers found it difficult to debug while using addport with the -n argument. I'm inclined to agree with the sentiment. Submitted by: sada, deischen, others Notes: svn path=/head/; revision=35776
* Add standard 2-clause BSD license to protect my (and mharo's) copyright.Will Andrews2000-11-041-0/+24
| | | | Notes: svn path=/head/; revision=34802
* Overhaul addport again. Should be quite functional now.Will Andrews2000-10-141-22/+70
| | | | | | | | | | | | | | | | | | | | | | 1) Re-add functionality removed in revision 1.11, but only as an option. This time, it checks out its own copy of ports/Mk and points PORTSDIR at the correct location. To use this, use the -a option. It will not work if it can't find portlint in your path. 2) Add option -f to disable fetching the distfile. 3) Add option -m to disable checking out a copy of Mk for 1). For those that have a current Mk in PORTSDIR and don't want to check out a fresh copy for whatever reason. 4) Support CVSROOT environment variable. 5) Note environment variables recognized by addport. 6) Fix breakage trying to use -d with multiple directories (not tested). 7) Actually use $interactive variable. 8) Update usage(). 9) Note original RCSID for my shell script; take over as MAINTAINER. Tested by: gshapiro (this revision was used in adding sendmail) Notes: svn path=/head/; revision=33809
* Since people don't seem to appreciate the fact that addport can doWill Andrews2000-10-111-26/+0
| | | | | | | | | | | automatic checking on their ports to be added, I'm removing it and its overriding -v option. Let the improper port additions continue, and screw anyone who doesn't care about the repo. Propelled by: obrien, msmith Notes: svn path=/head/; revision=33694
* Use -t flag with portlint.Will Andrews2000-10-041-1/+1
| | | | | | | Submitted by: trevor Notes: svn path=/head/; revision=33392
* Fix bogon where replies were not chomp()'d.Will Andrews2000-10-011-0/+1
| | | | | | | Submitted by: knu Notes: svn path=/head/; revision=33294
* Make -n work again. Add new option -s to allow people to specify aWill Andrews2000-08-191-11/+30
| | | | | | | | | | | | | | | | | $DISTDIR to put distfiles in, if they can't touch $PORTSDIR/distfiles. If this is freefall, default to $tmpdir, which is relatively secure since most users on it are trusted. Reset FETCH_BEFORE_ARGS to "-btA" instead of "-btsA", so the distfile is actually fetched. Add a method to allow the name of the module to be changed if -i is used. Update to use the modulesupdate that's in /usr/local/bin. Addport should now work properly on freefall, without -v option. Submitted by: roger (-s, $tmpdir by default on freefall) Thanks to: peter (copying modulesupdate to /usr/local/bin) Notes: svn path=/head/; revision=31762
* Properly check -d argument, and return usage() if it's not there. Also useWill Andrews2000-08-111-6/+9
| | | | | | | | | Sys::Hostname with hostname() instead of `hostname`. Hostname stolen from: CVSROOT/log_accum.pl Notes: svn path=/head/; revision=31543
* Minor cleanups. Print usage() if no arguments are passed. Get rid ofWill Andrews2000-08-111-19/+10
| | | | | | | | | unused $pwd variable. Remove extra cruft. Fix comments. usage() problem submitted by: knu Notes: svn path=/head/; revision=31531
* Major update to addport. Many *MANY* bugfixes. Addport should now workWill Andrews2000-08-091-160/+211
| | | | | | | | | | | | | | | | | | | | | with a directory specified as ``.'' or containing a ``/''. A new option -i was added to allow people more control over the port's position in the CVS repository. A new feature was added to allow multiple ports to be added in the same execution of addport. Addport will now add a port to the category Makefile properly if it is the first port in a category. A major reorganization of addport was also performed - now the functions are at the *bottom* instead of scattered around. This should allow easier understanding of the process addport goes through. I've also added -w to perl's exec args, and moved to a hash for getopts(). usage() was extended to help explain addport's functionality better. Bugs submitted by: nbm Some help from: sheldonh Notes: svn path=/head/; revision=31457
* Fix special case where people use ``.'' for the argument to -d. I'm notWill Andrews2000-08-061-1/+6
| | | | | | | | | | | | very good with perl yet, so anyone who can propose a better way to do this (with s/// or m// or something using regex) that might also include the case where the argument contains slashes (i.e. games/somegame). But anyways, this should catch folks who use ``.''. :-> Submitted by: obrien, sada Notes: svn path=/head/; revision=31331
* Allow existing CVS_RSH environment var to take precedent.Will Andrews2000-07-031-2/+4
| | | | | | | Submitted by: sobomax Notes: svn path=/head/; revision=30146
* Fix addport so that it will work on freefall. Remove old cruft leftWill Andrews2000-06-301-13/+28
| | | | | | | | around from older versions of addport. Make addport a little more helpful by actually displaying usage() if no args are passed. Notes: svn path=/head/; revision=30037
* Future replacement to easy-import for adding ports to the tree.Michael Haro2000-05-011-0/+243
This still needs work, but I want to get this out there so people can comment on it. This is really only of use to committers. Notes: svn path=/head/; revision=28244