From fe3288e1aa8e9a497004d354bb674a26923f0b61 Mon Sep 17 00:00:00 2001 From: Trygve Aaberge Date: Thu, 24 Aug 2023 21:08:10 +0200 Subject: Fix build script --- build.sh | 6 +++--- 1 file 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 -- cgit