diff options
-rwxr-xr-x | build.sh | 11 | ||||
-rw-r--r-- | slack/register.py | 1 |
2 files changed, 8 insertions, 4 deletions
@@ -6,6 +6,11 @@ contents="$(cat slack/util.py slack/task.py slack/!(util|task).py main.py | \ perl -0777 -pe 's/^( *from [^(\n]+\([^)]+\))/$1=~s|\s+| |gr/mge' | \ grep -Ev '^from slack[. ]')" -echo "$contents" | grep '^from __future__' | sort -u > build/slack.py -echo "$contents" | grep -v '^from __future__' | grep -E '^(import|from)' | sort -u >> build/slack.py -echo "$contents" | grep -Ev '^(import|from)' | sed 's/^\( \+\)\(import\|from\).*/\1pass/' >> build/slack.py +( + echo "# This is a compiled file." + echo "# For the original source, see https://github.com/wee-slack/wee-slack" + echo + echo "$contents" | grep '^from __future__' | sort -u + echo "$contents" | grep -v '^from __future__' | grep -E '^(import|from)' | sort -u + echo "$contents" | grep -Ev '^(import|from)' | sed 's/^\( \+\)\(import\|from\).*/\1pass/' +) > build/slack.py diff --git a/slack/register.py b/slack/register.py index f403ac3..5e40c6a 100644 --- a/slack/register.py +++ b/slack/register.py @@ -12,7 +12,6 @@ from slack.util import get_callback_name, with_color SCRIPT_AUTHOR = "Trygve Aaberge <trygveaa@gmail.com>" SCRIPT_LICENSE = "MIT" SCRIPT_DESC = "Extends weechat for typing notification/search/etc on slack.com" -REPO_URL = "https://github.com/wee-slack/wee-slack" def shutdown_cb(): |