diff --git a/libselinux/src/exception.sh b/libselinux/src/exception.sh old mode 100644 new mode 100755 index b2a37994..c3e61a58 --- a/libselinux/src/exception.sh +++ b/libselinux/src/exception.sh @@ -15,7 +15,6 @@ echo " ;; esac } -echo '#include "../include/selinux/selinux.h"' > temp.c -gcc -c temp.c -aux-info temp.aux -for i in `awk '/..\/include\/selinux\/selinux.h.*extern int/ { print $6 }' temp.aux`; do except $i ; done -rm -f temp.c temp.aux temp.o +gcc -x c -c - -aux-info temp.aux < ../include/selinux/selinux.h +for i in `awk '/.*extern int/ { print $6 }' temp.aux`; do except $i ; done +rm -f -- temp.aux -.o