[gimp] tools/generate-news Add a script to generate a NEWS file template
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] tools/generate-news Add a script to generate a NEWS file template
- Date: Sat, 2 May 2015 18:32:14 +0000 (UTC)
commit 8b5308b97acd1bf9ac01a1c1692d118104accf95
Author: Ville Pätsi <drc gimp org>
Date: Sat May 2 14:23:10 2015 -0400
tools/generate-news Add a script to generate a NEWS file template
tools/generate-news | 30 ++++++++++++++++++++++++++++++
1 files changed, 30 insertions(+), 0 deletions(-)
---
diff --git a/tools/generate-news b/tools/generate-news
new file mode 100755
index 0000000..073d30e
--- /dev/null
+++ b/tools/generate-news
@@ -0,0 +1,30 @@
+#!/bin/bash
+
+# Copyright (C) 2015 Ville Pätsi <drc gimp org>
+
+SCRIPT_FOLDER=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
+
+FIRST_COMMIT="$1"
+[ -z "$FIRST_COMMIT" ] && FIRST_COMMIT="950412fbdc720fe2600f58f04f25145d9073895d" # First after tag 2.8.0
+
+declare -a FOLDERS=('app tools menus etc' \
+ 'libgimp libgimpbase libgimpcolor libgimpconfig libgimpmath libgimpmodule libgimpthumb libgimpwidgets' \
+ 'plug-ins' \
+ 'modules'
+ 'build' \
+ 'themes icons')
+
+OUTPUTFILE=${SCRIPT_FOLDER}/../NEWS_since_"${FIRST_COMMIT}"
+
+pushd ${SCRIPT_FOLDER}/..
+
+for folderloop in "${FOLDERS[ ]}"
+do uppercase_folderloop="`echo ${folderloop:0:1} | tr '[:lower:]' '[:upper:]'`${folderloop:1}"
+ echo -e "${uppercase_folderloop}:\n" >> "${OUTPUTFILE}"
+ git log --date-order --reverse --date=short --pretty=format:"- %h %s" "${FIRST_COMMIT}"..HEAD
${folderloop} >> "${OUTPUTFILE}"
+ echo -e "\n\n" >> "${OUTPUTFILE}"
+done
+
+popd
+
+echo "NEWS generated into ${OUTPUTFILE}"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]