diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2023-08-24 21:08:10 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2024-02-18 11:32:54 +0100 |
commit | fe3288e1aa8e9a497004d354bb674a26923f0b61 (patch) | |
tree | 1ba27fe30dd15ecf3e3814f2672011b3d507de07 /build.sh | |
parent | 236c7a90671716702a630d2701af4d961b51d97c (diff) | |
download | wee-slack-fe3288e1aa8e9a497004d354bb674a26923f0b61.tar.gz |
Fix build script
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -3,7 +3,7 @@ shopt -s extglob contents="$(cat slack/python_compatibility.py slack/util.py slack/task.py slack/!(python_compatibility|util|task).py main.py | \ - perl -0777 -pe 's/^( *from [^(\n]+\([^)]+\))/$1=~s|\s+| |gr/mge' | \ + perl -0777 -pe 's/^( *from [^(\n]+\([^)]+\))/$1=~s|\n+||gr/mge' | \ grep -Ev '^from slack[. ]')" ( @@ -11,6 +11,6 @@ contents="$(cat slack/python_compatibility.py slack/util.py slack/task.py slack/ 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/' + 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 |