On Wed, Apr 24 2019, Marc Espie <[email protected]> wrote:
> I've been playing a bit with new C++, and  to host stuff on github.
>
> As a result, I've written a new (smallish) command called rr:
> -----------
>
> rr (random run) runs a command with randomized arguments.
>   
> Basically,
>
> $ rr mpv *.mp4
> will give you a true shuffle, that doesn't play the same file twice.
>
> there are more options:
>
> $ rr xv -nolimit -- *
> allows you to specify options that won't be jumbled.
>
> $ rr -n 500 -x '.*.pdf' xv -nolimit -- *
> will run xv several times on all files in the current directory
> except those matching '.*.pdf', limiting each run to 500 parameters.
>
> ----------
>
> Port attached
>
> # $OpenBSD$
>
> COMMENT =     run command with randomized parameters
> PKGNAME =     rr-${GH_TAGNAME}
> CATEGORIES =  sysutils
> MAINTAINER =  Marc Espie <[email protected]>
>
> GH_PROJECT =  random_run
> GH_TAGNAME =  1.0
> GH_ACCOUNT =  marcespie
>
> COMPILER =    base-clang ports-gcc

Doesn't build with current ports-gcc (4.9.4) since it doesn't know about
C++17.  Builds fine with gcc-8.3.0 though.

The port doesn't respect CXXFLAGS/DEBUG/LDFLAGS.  Suggestion:

MAKE_FLAGS =    OPTIMIZE="${CXXFLAGS}" \
                LDFLAGS="${LDFLAGS}"

> # BSD licence
> PERMIT_PACKAGE_CDROM = Yes
> NO_TESTS =    Yes
>
> WANTLIB =     ${COMPILER_LIBCXX} c m
>
> do-install:
>       ${INSTALL_PROGRAM} ${WRKBUILD}/rr ${PREFIX}/bin
>       ${INSTALL_MAN} ${WRKSRC}/rr.1 ${PREFIX}/man/man1
>
>
> .include <bsd.port.mk>
> SHA256 (random_run-1.0.tar.gz) = HHcgSwtFu0/87XVkVu297fX0Q8eGnF5+dPIoB3ZyxPM=
> SIZE (random_run-1.0.tar.gz) = 3463
> rr (random run) runs a command with randomized arguments.
>
> Basically,
>
> $ rr mpv *.mp4
> will give you a true shuffle, that doesn't play the same file twice.
>
> there are more options:
>
> $ rr xv -nolimit -- *
> allows you to specify options that won't be jumbled.
>
> $ rr -n 500 -x '.*.pdf' xv -nolimit -- *
> will run xv several times on all files in the current directory
> except those matching '.*.pdf', limiting each run to 500 parameters.
>
> See the manpage for details
> @comment $OpenBSD: PLIST,v$
> @bin bin/rr
> @man man/man1/rr.1
>

-- 
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE

Reply via email to