diff options
Diffstat (limited to 'combine.sh')
-rwxr-xr-x | combine.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/combine.sh b/combine.sh new file mode 100755 index 0000000..688d3c1 --- /dev/null +++ b/combine.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +contents="$(cat slack/globals.py slack/log.py slack/util.py slack/task.py slack/http.py slack/api.py slack/config.py slack/main.py slack.py | grep -Ev '^from (\.|slack)' | sed 's/G\.//')" + +echo "$contents" | grep '^from __future__' | sort -u > combined.py +echo "$contents" | grep -v '^from __future__' | grep -E '^(import|from)' | sort -u >> combined.py +echo "$contents" | grep -Ev '^(import|from)' >> combined.py |