HardenedBSD/contrib/unifdef/tests/outperms.sh
Dag-Erling Smørgrav fb3ef04d20 Add 'contrib/unifdef/' from commit '0da44885831dc0a43c4ca6ff04a2430993cc0a80'
git-subtree-dir: contrib/unifdef
git-subtree-mainline: 3b7ffacdee
git-subtree-split: 0da4488583
2023-08-21 19:51:03 +02:00

11 lines
213 B
Bash

umask 027
unifdef -DFOO=1 -DFOOB=42 -UBAR -ooutfile.c if1.c
e=$?
case ${BUILD_MINGW} in
(yes) printf '%s\n' '-rw-r-----' 1>&2 ;;
(*) ls -l outfile.c | cut -d' ' -f1 1>&2 ;;
esac
cat outfile.c
rm outfile.c
exit $e