[packages/wowza-mediaserver] handle grep refusing to process binary files

glen glen at pld-linux.org
Tue Sep 27 21:34:10 CEST 2016


commit a9ac8093a857adf5270d0242cfb6c66d3fe6f988
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Tue Sep 27 22:33:56 2016 +0300

    handle grep refusing to process binary files

 wowza-mediaserver.spec | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/wowza-mediaserver.spec b/wowza-mediaserver.spec
index 3a46215..cd1f8e7 100644
--- a/wowza-mediaserver.spec
+++ b/wowza-mediaserver.spec
@@ -44,7 +44,7 @@ mv usr/local/WowzaMediaServer-%{version} wowza
 mv wowza/{examples,legal,documentation,README.html} .
 
 # extract license
-lineno=$(grep -n '^EOF$' src.bin | cut -d: -f1)
+lineno=$(grep -an '^EOF$' src.bin | cut -d: -f1)
 head -n +$((lineno + 1)) src.bin | sed -ne '/EOF/,/^EOF$/p' | grep -v EOF > LICENSE.txt
 
 %ifos Linux
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/wowza-mediaserver.git/commitdiff/a9ac8093a857adf5270d0242cfb6c66d3fe6f988



More information about the pld-cvs-commit mailing list