mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-11-04 00:04:25 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			493 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			493 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/sh
 | 
						|
# Convert git log to GNU-style ChangeLog file.
 | 
						|
# (C) Chris
 | 
						|
if test -d ".git"; then
 | 
						|
    git log --date-order --date=short | \
 | 
						|
    sed -e '/^commit.*$/d' | \
 | 
						|
    awk '/^Author/ {sub(/\\$/,""); getline t; print $0 t; next}; 1' | \
 | 
						|
    sed -e 's/^Author: //g' | \
 | 
						|
    sed -e 's/>Date:   \([0-9]*-[0-9]*-[0-9]*\)/>\t\1/g' | \
 | 
						|
    sed -e 's/^\(.*\) \(\)\t\(.*\)/\3    \1    \2/g' | \
 | 
						|
    sed -e 's/[	 ]*$//g' > ChangeLog
 | 
						|
    exit 0
 | 
						|
else
 | 
						|
    echo "No git repository present."
 | 
						|
    exit 1
 | 
						|
fi
 |