system/ripgrep: Allow overriding VERSION.

Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
This commit is contained in:
Andrew Clemons 2019-04-19 17:08:02 +12:00 committed by Willy Sudiarto Raharjo
parent c1a88719ab
commit b852966934
No known key found for this signature in database
GPG key ID: 887B8374D7333381

View file

@ -2,7 +2,7 @@
# Slackware build script for ripgrep
# Copyright 2017-2018 Andrew Clemons, Wellington New Zealand
# Copyright 2017-2019 Andrew Clemons, Wellington New Zealand
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -91,84 +91,13 @@ mkdir vendor
(
cd vendor
for dependency in aho-corasick=0.6.8 \
arrayvec=0.4.7 \
atty=0.2.11 \
base64=0.9.2 \
bitflags=1.0.4 \
bytecount=0.3.2 \
byteorder=1.2.6 \
cc=1.0.24 \
cfg-if=0.1.5 \
clap=2.32.0 \
cloudabi=0.0.3 \
crossbeam-channel=0.2.4 \
crossbeam-epoch=0.5.2 \
crossbeam-utils=0.5.0 \
encoding_rs=0.8.6 \
encoding_rs_io=0.1.2 \
fnv=1.0.6 \
fuchsia-zircon-sys=0.3.3 \
fuchsia-zircon=0.3.3 \
glob=0.2.11 \
itoa=0.4.2 \
lazy_static=1.1.0 \
libc=0.2.43 \
lock_api=0.1.3 \
log=0.4.5 \
memchr=2.0.2 \
memmap=0.6.2 \
memoffset=0.2.1 \
nodrop=0.1.12 \
num_cpus=1.8.0 \
owning_ref=0.3.3 \
parking_lot=0.6.4 \
parking_lot_core=0.3.0 \
pcre2-sys=0.1.1 \
pcre2=0.1.0 \
pkg-config=0.3.14 \
proc-macro2=0.4.18 \
quote=0.6.8 \
rand=0.4.3 \
rand=0.5.5 \
rand_core=0.2.1 \
redox_syscall=0.1.40 \
redox_termios=0.1.1 \
regex-syntax=0.6.2 \
regex=1.0.5 \
remove_dir_all=0.5.1 \
ryu=0.2.6 \
safemem=0.2.0 \
same-file=1.0.3 \
scopeguard=0.3.3 \
serde=1.0.77 \
serde_derive=1.0.77 \
serde_json=1.0.27 \
simd=0.2.2 \
smallvec=0.6.5 \
stable_deref_trait=1.1.1 \
strsim=0.7.0 \
syn=0.15.1 \
tempdir=0.3.7 \
termcolor=1.0.3 \
termion=1.5.1 \
textwrap=0.10.0 \
thread_local=0.3.6 \
ucd-util=0.1.1 \
unicode-width=0.1.5 \
unicode-xid=0.1.0 \
unreachable=1.0.0 \
utf8-ranges=1.0.1 \
version_check=0.1.4 \
void=1.0.2 \
walkdir=2.2.5 \
winapi-i686-pc-windows-gnu=0.4.0 \
winapi-util=0.1.1 \
winapi-x86_64-pc-windows-gnu=0.4.0 \
winapi=0.3.5 \
wincolor=1.0.1; do
dep="$(echo "$dependency" | cut -d= -f1)"
ver="$(echo "$dependency" | cut -d= -f2)"
grep -h -A 3 "\[\[package\]\]" $(find ../ -maxdepth 1 -mindepth 1 -name Cargo.lock | tr '\n' ' ') | \
sed 's/[[:space:]]*=[[:space:]]*/=/g;s/^--//;s/^\[\[/--\n[[/' | \
awk 'BEGIN { RS = "--\n" ; FS="\n" } { print $2, $3, $4 }' | sed 's/"//g;s/name=//;s/ version=/=/' | \
grep crates\.io-index | sed 's/ source=.*$//' | sort -u | while read -r dep ; do
ver="$(printf "%s\n" "$dep" | cut -d= -f2)"
dep="$(printf "%s\n" "$dep" | cut -d= -f1)"
tar xvf $CWD/$dep-$ver.crate