tp-langages-formels/exclude-executables.sh

5 lines
144 B
Bash
Executable File

#!/bin/sh
find . -perm /111 -type f -not -path "./.git/*" | sed 's#^./##' | sort > .gitignore
echo "*.c" >> .gitignore
echo "*.o" >> .gitignore