aboutsummaryrefslogtreecommitdiff
path: root/extra/grep/build
diff options
context:
space:
mode:
Diffstat (limited to 'extra/grep/build')
-rwxr-xr-xextra/grep/build11
1 files changed, 11 insertions, 0 deletions
diff --git a/extra/grep/build b/extra/grep/build
new file mode 100755
index 00000000..547fc5a5
--- /dev/null
+++ b/extra/grep/build
@@ -0,0 +1,11 @@
+#!/bin/sh -e
+
+export LDFLAGS="$LDFLAGS -static"
+
+./configure \
+ --prefix=/usr
+
+make
+make DESTDIR="$1" install
+
+cp "$1/usr/bin/grep" "$1/usr/bin/ggrep"