Permalink
Browse files

A script that runs 'oilc deps' over the oil repo.

  • Loading branch information...
Andy Chu
Andy Chu committed Feb 23, 2018
1 parent b53a6d5 commit d7c2ba6a390d74ac36ef76d9b0f7af63e7178e2e
Showing with 32 additions and 0 deletions.
  1. +32 −0 scripts/deps.sh
View
@@ -0,0 +1,32 @@
#!/bin/bash
#
# Find dependencies of shell scripts in this repo.
# This is a good set of repos for oilshell.org/src.
#
# Usage:
# ./deps.sh <function name>
set -o nounset
set -o pipefail
set -o errexit
_this-repo() {
# NOTE: copied from test/wild.sh oil-manifest.
for name in \
configure install *.sh {benchmarks,build,test,scripts,opy}/*.sh; do
bin/oilc deps $name
done
}
# Top:
# mkdir, cat, xargs, basename, wc.
#
# There are some errors due to separate modules too, like csv2html, fail, etc.
this-repo() {
local tmp=_tmp/this-repo-deps.txt
_this-repo > $tmp
sort $tmp | uniq -c | sort -n
}
"$@"

0 comments on commit d7c2ba6

Please sign in to comment.