Skip to content

Commit

Permalink
Merge pull request #1 from robashton/patch-1
Browse files Browse the repository at this point in the history
portable bash
  • Loading branch information
nwolverson authored Dec 2, 2019
2 parents 85459a9 + 0045daa commit 6f27caf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/gen_module_names.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
#!/usr/bin/env bash

SRCDIR=${1:-src}
MODULES=$(find "$SRCDIR" -name \*.purs -exec sed -rn '/^--/d; s/^module\s+([^ ]+)(\s+.*|$)/\1/p; T q ; q0; :q q1;' \{\} \;|sort -f)

Expand Down Expand Up @@ -26,4 +27,4 @@ END
# $MODULE_IDENT :: $MODULE_TYPE
# $MODULE_IDENT = ModuleName
# END
done
done

0 comments on commit 6f27caf

Please sign in to comment.