3429
|
1 |
# Solaris used to have whereis but it was removed early in S12. Use type
|
|
2 |
# instead. Because most Linux distros have whereis, this patch is deemed
|
|
3 |
# Solaris-centric and thus not worthy of being submitted upstream.
|
|
4 |
#
|
|
5 |
--- pigz-2.2.5/Makefile.orig 2012-02-11 21:18:18.000000000 -0800
|
|
6 |
+++ pigz-2.2.5/Makefile 2013-03-15 06:01:46.213801609 -0700
|
|
7 |
@@ -39,7 +39,7 @@
|
|
8 |
(printf "w" | gzip ; printf "x") | ./pigz -cdf | wc -c | test `cat` -eq 2
|
|
9 |
(printf "w" | gzip ; printf "xy") | ./pigz -cdf | wc -c | test `cat` -eq 3
|
|
10 |
(printf "w" | gzip ; printf "xyz") | ./pigz -cdf | wc -c | test `cat` -eq 4
|
|
11 |
- -@if test "`whereis compress | grep /`" != ""; then \
|
|
12 |
+ -@if test "`type -f compress | grep /`" != ""; then \
|
|
13 |
echo 'compress -f < pigz.c | ./unpigz | cmp - pigz.c' ;\
|
|
14 |
compress -f < pigz.c | ./unpigz | cmp - pigz.c ;\
|
|
15 |
fi
|