https://github.com/AU-COBRA/ConCert
Raw File
Tip revision: 4b3148a20c36d045eeca6596140289d709e1478b authored by Danil Annenkov on 23 August 2022, 18:34:33 UTC
Update README: paper citation formatting
Tip revision: 4b3148a
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