Update installation script for metadata spelling
[geeqie.git] / gen_changelog.sh
index 17423e6..e74bd59 100755 (executable)
@@ -1,14 +1,17 @@
-#!/bin/bash
+#!/bin/sh
 
-# Script to update ChangeLog file,
-# it keeps "pre-svn" history and inserts git log at top,
-# it uses C locale for date format.
-# It has to be run where ChangeLog.gqview is.
-#
-# ChangeLog.html is also created
+## @file
+## @brief Update ChangeLog file  
+## - it keeps "pre-svn" history and inserts git log at top,  
+## - it uses C locale for date format.  
+## - It has to be run where ChangeLog.gqview is.  
+##
+## ChangeLog.html is also created
+##
 
 [ ! -e "ChangeLog.gqview" ] && exit 1
 [ ! -x "$(command -v git)" ] && exit 0
+[ ! -d ".git" ] && exit 0
 
 LC_ALL=C git log --no-merges --no-notes --encoding=UTF-8 --no-follow --use-mailmap 1b58572cf58e9d2d4a0305108395dab5c66d3a09..HEAD > ChangeLog.$$.new && \
 cat ChangeLog.gqview >> ChangeLog.$$.new && \