File: generate-news

package info (click to toggle)
gimp 3.0.4-3
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 210,076 kB
  • sloc: ansic: 842,287; lisp: 10,761; python: 10,318; cpp: 7,238; perl: 4,355; sh: 1,043; xml: 963; yacc: 609; lex: 348; javascript: 150; makefile: 43
file content (30 lines) | stat: -rwxr-xr-x 973 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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}"