Subject: Re: pkgsrc and jot(1)
To: Martti Kuparinen <martti.kuparinen@iki.fi>
From: Lubomir Sedlacik <salo@Xtrmntr.org>
List: tech-pkg
Date: 04/05/2002 16:21:41
--hQiwHBbRI9kgIhsi
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

hi,

On Fri, Apr 05, 2002 at 04:00:49PM +0300, Martti Kuparinen wrote:
> On Fri, 5 Apr 2002, Hubert Feyrer wrote:
>=20
> > Solaris 8 doesn't have jot.
>=20
> OK, so I'll look at other solutions then.

Linux uses GNU seq, Solaris doesn't have such tool, afaik (correct me
please, if someone knows about some). i personally use small shellscript
for such purpose on Solaris:

  #!/bin/ksh
 =20
  if [ $# -eq 2 ]; then
    NUM=3D$1
    while [ $NUM -lt $2 ]
      do
        echo $NUM
        NUM=3D$(($NUM + 1))
      done
    echo $NUM
  else
    echo "Usage: $0 [start] [end]"
  fi

no error checking, though, but you've got the idea.

the simplest solution would be to name them all in `for` statement..

  for PATCH in 1 2 3 4 5 6 7 8 9 10 .. .. .. 270; do

not nice but this will work everywhere without any additional utilities.

regards,

--=20
-- Lubomir Sedlacik <salo@Xtrmntr.org>   ASCII Ribbon campaign against  /"\=
 --
--                  <salo@silcnet.org>   e-mail in gratuitous HTML and  \ /=
 --
--                                       Microsoft proprietary formats   X =
 --
-- PGPkey: http://Xtrmntr.org/salo.pgp                                  / \=
 --
-- Key Fingerprint: DBEC 8BEC 9A90 ECEC 0FEF  716E 59CE B70B 7E3B 70E2     =
 --

--hQiwHBbRI9kgIhsi
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (NetBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE8rbL1Wc63C347cOIRAsQOAKCrLeLhtYWycyP6Ogv+dA95ePqPCwCbBKM+
EXy4ciV0rQPcA+n1DPIvIKw=
=ouhY
-----END PGP SIGNATURE-----

--hQiwHBbRI9kgIhsi--