aboutsummaryrefslogtreecommitdiffstats
path: root/build.sh
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2023-08-24 21:08:10 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-18 11:32:54 +0100
commitfe3288e1aa8e9a497004d354bb674a26923f0b61 (patch)
tree1ba27fe30dd15ecf3e3814f2672011b3d507de07 /build.sh
parent236c7a90671716702a630d2701af4d961b51d97c (diff)
downloadwee-slack-fe3288e1aa8e9a497004d354bb674a26923f0b61.tar.gz
Fix build script
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/build.sh b/build.sh
index 1d550c3..c483ebe 100755
--- a/build.sh
+++ b/build.sh
@@ -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