Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
executable file 22 lines (17 sloc) 457 Bytes
#!/usr/bin/env bash
# script used to generate the list of packages
exclude=$1
DIRS=$(find . -type d | sed "s/.\///")
if [ -f "$exclude" ]; then
: ${PACKAGE_FILTER:=grep -E -v -f $exclude}
else
: ${PACKAGE_FILTER:=cat}
fi
PACKAGES=''
for dir in $DIRS ; do
files=$(find $dir -maxdepth 1 -name '*.opa')
if [ -n "$files" ] ; then
this=$(echo $dir | sed 's/\//./g')
echo "stdlib.$this"
fi
done | sort -u | $PACKAGE_FILTER
Jump to Line
Something went wrong with that request. Please try again.