App-dategrep

 view release on metacpan or  search on metacpan

build-standalone  view on Meta::CPAN


open( my $fh, '<', $script ) or die "Can't open $script: $!\n";

while (<$fh>) {
    next if /^use App::dategrep/;
    print {$standalone} $_;
}

finddepth( \&wanted, 'lib' );

chmod 0755, $target;

exit 0;

contrib/dategrep-install.sh  view on Meta::CPAN

set -e

DATEGREP="/usr/local/bin/dategrep"
DATEGREP_RELEASES="https://api.github.com/repos/mdom/dategrep/releases"
DATEGREP_URL_TPL="https://github.com/mdom/dategrep/releases/download/%s/dategrep"

LATEST="$(wget -q -O- "$DATEGREP_RELEASES" | sed -ne '0,/^.*"tag_name": "\(v[0-9.]\+\)".*$/{s//\1/p}')"
printf -v LATEST_URL "$DATEGREP_URL_TPL" "$LATEST"

wget -nv -O "$DATEGREP" "$LATEST_URL"
chmod +x "$DATEGREP"

"$DATEGREP" --version



( run in 0.239 second using v1.01-cache-2.11-cpan-496ff517765 )