]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/unifdef/tests/overperms.sh
Add 'contrib/unifdef/' from commit '0da44885831dc0a43c4ca6ff04a2430993cc0a80'
[FreeBSD/FreeBSD.git] / contrib / unifdef / tests / overperms.sh
1 cp if1.c outfile.c
2 chmod 640 outfile.c
3 ls -l outfile.c | cut -d' ' -f1 1>&2
4 unifdef -DFOO=1 -DFOOB=42 -UBAR -m outfile.c
5 e=$?
6 case ${BUILD_MINGW} in
7 (yes)   printf '%s\n' '-rw-r-----' 1>&2 ;;
8 (*)     ls -l outfile.c | cut -d' ' -f1 1>&2 ;;
9 esac
10 cat outfile.c
11 rm outfile.c
12 exit $e