tp-langages-formels/exclude-executables.sh

5 lines
144 B
Bash
Raw Normal View History

2020-05-15 23:51:08 +00:00
#!/bin/sh
2020-05-15 23:54:23 +00:00
find . -perm /111 -type f -not -path "./.git/*" | sed 's#^./##' | sort > .gitignore
2020-05-15 23:51:08 +00:00
echo "*.c" >> .gitignore
2020-05-15 23:54:23 +00:00
echo "*.o" >> .gitignore