https://github.com/AU-COBRA/ConCert
Raw File
Tip revision: 3382e48f12d66f18c49ca20d9094d5864c4bb8a9 authored by 4ever2 on 24 May 2022, 20:50:09 UTC
Dexter1 tests (#171)
Tip revision: 3382e48
check_coqproject.sh
#! /usr/bin/env bash
echo "Lines in _CoqProject not present on disk:"
cat _CoqProject | while read f
do
  if [[ ! $f == -* ]] && [ ! -z "$f" ] && [ ! -f "./$f" ]; then
    echo "$f"
  fi
done

echo ".v files on disk not present in _CoqProject:"
find . -type f -not -path "./_opam/*" -name "*.v" | while read f
do
  found=0
  while read f2
  do
    if [[ ! $f2 == -* ]] && [ ! -z "$f2" ] && [[ "./$f2" -ef "$f" ]]; then
      found=1
    fi
  done < <(cat _CoqProject)
  if [ $found -eq 0 ]; then
    echo "$f"
  fi
done
back to top