diff --git a/.gitignore b/.gitignore index dd51575..c59f1ee 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ lexical/example lexical/flux lexical/string *.c +*.o diff --git a/exclude-executables.sh b/exclude-executables.sh index 9c4d224..58b57de 100755 --- a/exclude-executables.sh +++ b/exclude-executables.sh @@ -1,3 +1,4 @@ #!/bin/sh -find . -perm /111 -type f | sed 's#^./##' | sort > .gitignore +find . -perm /111 -type f -not -path "./.git/*" | sed 's#^./##' | sort > .gitignore echo "*.c" >> .gitignore +echo "*.o" >> .gitignore