OSDN Git Service

Fix up the ChangeLog generation a bit.
[android-x86/external-parted.git] / scripts / release / tarball_upload.sh
index d7a543a..2e9f643 100755 (executable)
@@ -68,7 +68,13 @@ else
 fi
 
 message "* generating ChangeLog"
-git log --pretty=medium | fold -s > ChangeLog
+( GIT_DIR=.git git-log > .changelog.tmp && \
+  mv .changelog.tmp ChangeLog ; \
+  rm -f .changelog.tmp \
+) || \
+( touch ChangeLog ; \
+  echo 'git directory not found: installing possibly empty changelog.' \
+)
 
 VERSION=$(grep ' VERSION' lib/config.h | awk '{print $3}' | tr -d '"')