Skip to content

Commit

Permalink
improves bundling
Browse files Browse the repository at this point in the history
  • Loading branch information
betafcc committed May 18, 2020
1 parent 58c8b1c commit 7c48d03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
clc: src/*.bash
./make_bundle $^ > $@
env -i ./make_bundle $^ > $@
chmod +x $@
.DELETE_ON_ERROR:
2 changes: 1 addition & 1 deletion make_bundle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ echo '#!/usr/bin/env bash'

eval "$(printf 'source "%s"\n' "$@")"

declare | sed -n -e "/^_=/,\$p" | sed -n -e "1d;p"
declare -f # print the imported functions

printf '
# run `clc` if not being sorced
Expand Down

0 comments on commit 7c48d03

Please sign in to comment.