File: changed

package info (click to toggle)
swi-prolog 5.10.1-1%2Bsqueeze1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 76,436 kB
  • ctags: 45,143
  • sloc: ansic: 290,417; perl: 215,108; sh: 5,411; java: 5,136; makefile: 5,021; cpp: 2,168; yacc: 843; xml: 77; sed: 12
file content (36 lines) | stat: -rwxr-xr-x 792 bytes parent folder | download | duplicates (2)
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
31
32
33
34
35
36
#!/bin/bash
#
# Show differences in ChangeLog files since last or given release

version=`cat VERSION`

while [ $# -gt 0 ]; do
  case "$1" in
     [0-9]*)
	  version="$1"
	  shift
	  ;;
     last)
	  shift
	  ;;
     *)
	  echo "Usage: $0 [version]"
	  exit 1
  esac
done

tag=V$version
changed="ChangeLog `find packages -name ChangeLog`"

echo "================================================================"
echo "SWI-Prolog changes since version $version"
echo "================================================================"
echo ""

for f in $changed; do
  if git diff "$tag" -- "$f" | grep '^+' | grep -q '^+' ; then
    echo "================================================================"
    git diff "$tag" -- "$f" | grep '^+' | grep -v "=============="
    echo ""
  fi
done