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