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