aboutsummaryrefslogtreecommitdiffstats
path: root/build.sh
blob: 5fcfbdf9dfc6b5dec3bc23f48e78b558c7cf4d00 (plain) (blame)
1
2
3
4
5
6
7
#!/bin/bash

contents="$(cat slack/*.py main.py | 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)' >> build/slack.py