Skip to content

Commit

Permalink
Update license year
Browse files Browse the repository at this point in the history
  • Loading branch information
makenowjust committed Oct 30, 2018
1 parent a69d940 commit 3b9be7f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# MIT License

Copyright (c) 2016-2017 TSUYUSATO "MakeNowJust" Kitsune
Copyright (c) 2016-2018 TSUYUSATO "MakeNowJust" Kitsune

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,18 +63,19 @@ $ ./bashcached --help
bashcached - memcached built on bash + socat
(C) TSUYUSATO "MakeNowJust" Kitsune 2016-2018 <[email protected]>

USAGE: bashcached [--help] [--version] [--protocol=tcp|unix] [--port=PORT] [--check=CHECK]
USAGE: bashcached [--help] [--version] [--license] [--protocol=tcp|unix] [--port=PORT] [--check=CHECK]

OPTIONS:
--protocol=tcp|unix protocol name to bind and listen (default: tcp)
--port=PORT port (or filename) to bind and listen (default: 25252)
--check=CHECK interval to check each cache's expire (default: 60)
--help show this help
--version show bashcached's version
--license show bashcached's license
$ ./bashcached &
$ telnet localhost 25252
version
VERSION 5.1.2-bashcached
VERSION 5.2.0-bashcached
set hello 0 0 11
hello world
STORED
Expand Down
14 changes: 7 additions & 7 deletions bashcached
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@
# bashcached - memcached built on bash + socat
# (C) TSUYUSATO "MakeNowJust" Kitsune 2016-2018 <[email protected]>
#
# USAGE: bashcached [--help] [--version] [--protocol=tcp|unix] [--port=PORT] [--check=CHECK]
# USAGE: bashcached [--help] [--version] [--license] [--protocol=tcp|unix] [--port=PORT] [--check=CHECK]
#
# OPTIONS:
# --protocol=tcp|unix protocol name to bind and listen (default: tcp)
# --port=PORT port (or filename) to bind and listen (default: 25252)
# --check=CHECK interval to check each cache's expire (default: 60)
# --help show this help
# --version show bashcached's version
IFS=$' \t\r' VERSION=5.1.2-bashcached; export LANG=C
# --license show bashcached's license
IFS=$' \t\r' VERSION=5.2.0-bashcached; export LANG=C
trap 'exit 0' INT TERM

if [[ "$SOCAT_VERSION" ]]; then
Expand All @@ -24,9 +25,9 @@ if [[ "$SOCAT_VERSION" ]]; then
printf 'recv=%q send=%q cmd=%q\n' "$recv" "$send" "${cmd[*]}" >"$BASHCACHED_PIPE" 2>/dev/null && break; done;;
esac; done
else
help() { tail -n+2 <"$0" | head -n11 | cut -c3-; exit; }; version() { echo $VERSION; exit; }
license() { curl 'https://raw.githubusercontent.com/MakeNowJust/bashcached/master/LICENSE.MIT.md'; echo;
curl 'https://raw.githubusercontent.com/MakeNowJust/bashcached/master/LICENSE.%F0%9F%8D%A3.md'; exit; }
help() { tail -n+2 <"$0" | head -n12 | cut -c3-; exit; }; version() { echo $VERSION; exit; }
license() { curl -s 'https://raw.githubusercontent.com/MakeNowJust/bashcached/master/LICENSE.md'; echo;
curl -s 'https://raw.githubusercontent.com/MakeNowJust/bashcached/master/LICENSE.%F0%9F%8D%A3.md'; exit; }
for v in "$@"; do [[ $v == --* ]] && eval "${v:2}"; done

# global variables
Expand Down Expand Up @@ -95,5 +96,4 @@ else
[[ ${cmd[-1]} != noreply ]] && echo -e "OK\r">"$recv";;
version) echo -e "VERSION $VERSION\r">"$recv" &;;
esac; done &
socat "${protocol-tcp}-listen:${port-25252},reuseaddr,fork" system:"$0"
fi
socat "${protocol-tcp}-listen:${port-25252},reuseaddr,fork" system:"$0"; fi

0 comments on commit 3b9be7f

Please sign in to comment.