Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Jul 2010 11:08:18 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Joe <joeb_722@comclark.com>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: [new port] usage of shar command
Message-ID:  <4C42D292.208@infracaninophile.co.uk>
In-Reply-To: <4C42CFDA.3040409@comclark.com>
References:  <4C42CFDA.3040409@comclark.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigCEA712CD29BA9349E6F2B7F8
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On 18/07/2010 10:56:42, Joe wrote:

> After getting my port ready for submitting to the ports system, I read
> the above section from the porters handbook and come to a show stopper.=

>=20
> I can not figure out just what the author was trying to say with
> "output of shar `find port_dir`"
>=20
> Can someone explain how the shar command is intended to be used to
> create the file that gets send with the [new port] pr?

Suppose you have called your new port "splat", and you have therefore a
directory ~/splat containing the port Makefile, distinfo, pkg-descr,
etc.  Then what you need to do is run exactly this:

    % cd ~
    % shar `find splat` > splat.shar

Note the special `backticks` -- they're important.

What this does is --

    * Runs the command: find splat
      This will print out a list of all the file and directory names
      under the directory splat.
    * Takes that list and turns it into part of the command line for
      shar.
    * Runs shar over all the files and directories found by find.

Now, just attach that  splat.shar file to the PR (send-pr -a splat.shar)
as the final step in submitting your new port.

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey     Ramsgate
JID: matthew@infracaninophile.co.uk               Kent, CT11 9PW


--------------enigCEA712CD29BA9349E6F2B7F8
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxC0pkACgkQ8Mjk52CukIxpKgCfaahlF02gvd5OR+hX9/p0BOeW
TBwAn1snC5O5uja8d4c/CFO3e6vPFWUt
=nx0E
-----END PGP SIGNATURE-----

--------------enigCEA712CD29BA9349E6F2B7F8--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C42D292.208>