Add files for bpkg

This commit is contained in:
pepa65 2017-02-22 19:57:27 +07:00
parent f7c0d509f0
commit 7268b5591a
3 changed files with 21 additions and 2 deletions

8
Makefile Normal file
View File

@ -0,0 +1,8 @@
BIN ?= tldr
PREFIX ?= /usr/local
install:
cp $(BIN) $(PREFIX)/bin/$(BIN)
uninstall:
rm -f -- $(PREFIX)/bin/$(BIN)

9
package.json Normal file
View File

@ -0,0 +1,9 @@
{
"name": "tldr-bash-client",
"version": "0.1a",
"description": "A fully-functional bash client for the tldr project, providing poignant examples of terminal commands",
"global": "true",
"install": "make install",
"uninstall": "make uninstall",
"scripts": [ "tldr" ]
}

6
tldr
View File

@ -3,8 +3,10 @@ set +vx -o pipefail
[[ $- = *i* ]] && echo "Don't source this script!" && return 1
VERSION='0.1a'
# tldr-bash-client version 0.1a
# forked from Ray Lee, http://github.com/raylee/tldr
# modified and expanded by pepa65: http://github.com/pepa65/tldr-bash-client
# A fully-functional bash client for the tldr project, providing
# poignant examples of terminal commands.
# - forked from Ray Lee, http://github.com/raylee/tldr
# - modified and expanded by pepa65: http://github.com/pepa65/tldr-bash-client
# Requiring: coreutils, less, grep, unzip, curl/wget
# The 5 elements in TLDR markup that can be styled with these colors and