Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=d21848274c45a868387ee0d79c354d549a6e857e

commit d21848274c45a868387ee0d79c354d549a6e857e
Author: crazy <[email protected]>
Date:   Thu Dec 22 11:59:01 2016 +0100

try to use some sort grep -v
* added _F_github_grepv , works like _F_archive_grepv.
* also both will work. When _F_archive_grepv is set already
* _F_github_grepv uses that value also.

diff --git a/source/include/github.sh b/source/include/github.sh
index dce27a8..0c93657 100644
--- a/source/include/github.sh
+++ b/source/include/github.sh
@@ -35,6 +35,7 @@
# * _F_github_sep: defaults to Fpkgversep
# * _F_github_full_archive_name: no default. used for mad tarball names eg:
#   _F_github_full_archive_name="THis_Is-some-MAD1_1_3-nam_e"
+# * _F_github_grepv: no default , use like _F_archive_grepv
#
# == APPENDED VARIABLES
# * source()
@@ -103,6 +104,14 @@ 
__F_github_full_archive_name="${_F_github_full_archive_name}${_F_github_ext}"
_F_github_source="https://github.com/$_F_github_author/$_F_github_dirname/archive/${__F_github_full_archive_name}";
_F_github_up2date="releases/latest"

+## heh ok
+if [ -n "$_F_archive_grepv" ]; then
+       _F_github_grepv="$_F_archive_grepv"
+fi
+
+if [ -n "$_F_github_grepv" ]; then
+       off='| grep -v -- $_F_github_grepv'
+fi

## fixme ?
if [ -n "$_F_github_devel" ]; then
@@ -114,8 +123,7 @@ if [ -n "$_F_github_devel" ]; then
## who know some Finclude combos
unset source
else
-       up2date="lynx -dump 
https://github.com/${_F_github_author}/${_F_github_dirname}/${_F_github_up2date}
 | grep -v 'Source code' | grep  '\https\(.*\)$_F_github_ext' | grep -m1 
'archive' | sed 's/.*\/\(.*\)$_F_github_ext/\1/' | sed 's/^v//' | sed 
's/${_F_github_name}${_F_github_sep}//'"
-
+       up2date="lynx -dump  
https://github.com/${_F_github_author}/${_F_github_dirname}/${_F_github_up2date}
 | grep -v 'Source code' | grep  '\https\(.*\)$_F_github_ext'  $off | grep -m1 
'archive' | sed 's/.*\/\(.*\)$_F_github_ext/\1/' | sed 's/^v//' | sed 
's/${_F_github_name}${_F_github_sep}//'"
# On one line for Mr Portability, Hermier Portability.
source+=("${_F_github_source}")
fi
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to