File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,12 +9,12 @@ __init_tlrc() {
99 # ##############
1010
1111 # Every package should define these 6 variables
12- pkg_cmd_name=" tlrc "
12+ pkg_cmd_name=" tldr "
1313
1414 pkg_dst_cmd=" $HOME /.local/bin/tlrc"
1515 pkg_dst=" $pkg_dst_cmd "
1616
17- pkg_src_cmd=" $HOME /.local/opt/tlrc-v$WEBI_VERSION /tlrc "
17+ pkg_src_cmd=" $HOME /.local/opt/tlrc-v$WEBI_VERSION /tldr "
1818 pkg_src_dir=" $HOME /.local/opt/tlrc-v$WEBI_VERSION "
1919 pkg_src=" $pkg_src_cmd "
2020
@@ -29,11 +29,11 @@ __init_tlrc() {
2929
3030 # pkg_get_current_version is recommended, but not required
3131 pkg_get_current_version () {
32- # 'tlrc --version' has output in this format:
32+ # 'tldr --version' has output in this format:
3333 # tlrc 1.11.1
3434 # This trims it down to just the version number:
3535 # 1.11.1
36- tlrc --version 2> /dev/null |
36+ tldr --version 2> /dev/null |
3737 head -n 1 |
3838 cut -d ' ' -f 2
3939 }
Original file line number Diff line number Diff line change @@ -6,7 +6,16 @@ var repo = 'tlrc';
66
77module . exports = function ( ) {
88 return github ( null , owner , repo ) . then ( function ( all ) {
9- // tlrc has a clean release structure, no filtering needed
9+ all . releases = all . releases
10+ . map ( function ( rel ) {
11+ if ( / - g n u / . test ( rel . name ) ) {
12+ rel . libc = 'gnu' ;
13+ }
14+ if ( / - m u s l / . test ( rel . name ) ) {
15+ rel . libc = 'musl' ;
16+ }
17+ return rel ;
18+ } )
1019 return all ;
1120 } ) ;
1221} ;
You can’t perform that action at this time.
0 commit comments