File: index.sh

package info (click to toggle)
agda-stdlib 2.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,600 kB
  • sloc: haskell: 375; makefile: 32; sh: 28; lisp: 1
file content (8 lines) | stat: -rwxr-xr-x 275 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
set -eu
set -o pipefail
for file in $( find src -name "*.agda" | sort ); do
  if [[ ! $( head -n 10 $file | grep -m 1 "This module is DEPRECATED" ) ]]; then
    i=$( echo $file | sed 's/src\/\(.*\)\.agda/\1/' | sed 's/\//\./g' )
    echo "import $i" >> index.agda;
  fi
done