Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 29 lines (23 sloc) 0.575 kb
#!/usr/bin/env bash
# script used to generate the list of packages
exclude=$1
shift
LOOKED_PLACE=$@
if [ -s "$exclude" ]; then
: ${PACKAGE_FILTER:=grep -E -v -f $exclude}
else
: ${PACKAGE_FILTER:=cat}
fi
CWD=$PWD
for d in $LOOKED_PLACE; do
cd $d
DIRS=$(find . -type d | sed "s|^\.\/||" | sed "s|^\.||")
cd $CWD
for dir in $DIRS ; do
files=$(find $d/$dir -maxdepth 1 -name '*.opa')
if [ -n "$files" ] ; then
this=$(echo $dir | sed 's/\//./g')
echo "stdlib.$this"
fi
done
done | sort -u | $PACKAGE_FILTER
Jump to Line
Something went wrong with that request. Please try again.