# --- Standard project files ---
-for f in AUTHORS COPYING README; do
+authors=AUTHORS
+if [ ! -e AUTHORS ]; then
+ if git --version >/dev/null 2>&1; then
+ echo "Creating \"AUTHORS\" file ..."
+ echo "`git config user.name` <`git config user.email`>" >>AUTHORS
+ authors=
+ fi
+fi
+
+for f in $authors COPYING README; do
if [ ! -e "$f" ]; then
- echo "Creating empty \"$f\" ..."
+ echo "Creating empty \"$f\" file ..."
touch "$f"
fi
done