Skip to content
Newer
Older
100755 22 lines (17 sloc) 457 Bytes
22b433a @fperrin Don't assume that bash is in /bin
fperrin authored
1 #!/usr/bin/env bash
fccc685 Initial open-source release
MLstate authored
2 # script used to generate the list of packages
3
662e95e @BourgerieQuentin [enhance] compiler, packages: Allows to have several backends (separa…
BourgerieQuentin authored
4 exclude=$1
5
fccc685 Initial open-source release
MLstate authored
6 DIRS=$(find . -type d | sed "s/.\///")
7
662e95e @BourgerieQuentin [enhance] compiler, packages: Allows to have several backends (separa…
BourgerieQuentin authored
8 if [ -f "$exclude" ]; then
9 : ${PACKAGE_FILTER:=grep -E -v -f $exclude}
10 else
11 : ${PACKAGE_FILTER:=cat}
12 fi
6f12a0c [feature] build/opa: a variable that makes limiting the part of the s…
Louis Gesbert authored
13
fccc685 Initial open-source release
MLstate authored
14 PACKAGES=''
15 for dir in $DIRS ; do
16 files=$(find $dir -maxdepth 1 -name '*.opa')
17 if [ -n "$files" ] ; then
18 this=$(echo $dir | sed 's/\//./g')
19 echo "stdlib.$this"
20 fi
6f12a0c [feature] build/opa: a variable that makes limiting the part of the s…
Louis Gesbert authored
21 done | sort -u | $PACKAGE_FILTER
Something went wrong with that request. Please try again.