installcheck.sh 753 B

123456789101112131415161718192021222324252627
  1. #!/bin/bash
  2. PREFIX=$1
  3. # Run this script in the root of the git clone. Point out the install prefix
  4. # where 'make install' has already installed curl.
  5. if test -z "$1"; then
  6. echo "scripts/installcheck.sh [PREFIX]"
  7. exit
  8. fi
  9. diff -u <(find docs/libcurl/ -name "*.3" -printf "%f\n" | grep -v template| sort) <(find $PREFIX/share/man/ -name "*.3" -printf "%f\n" | sort)
  10. if test "$?" -ne "0"; then
  11. echo "ERROR: installed libcurl docs mismatch"
  12. exit 2
  13. fi
  14. diff -u <(find include/ -name "*.h" -printf "%f\n" | sort) <(find $PREFIX/include/ -name "*.h" -printf "%f\n" | sort)
  15. if test "$?" -ne "0"; then
  16. echo "ERROR: installed include files mismatch"
  17. exit 1
  18. fi
  19. echo "installcheck: installed libcurl docs and include files look good"