#!/bin/bash
#########################################################
# 							#
# This is BashStyle-NG 6.7				#
#							#
# Licensed under GNU LESSER GENERAL PUBLIC LICENSE v3	#
#							#
# Copyright 2007 - 2008 Christopher Bratusek		#
#							#
#########################################################

if [[ $1 == "" || $2 == "" ]]; then
	echo "Arguments missing!" && exit 0
fi

for file in glade-xml/bashstyle6.glade bs-ng-doc/index.html configure \
	support/bs-ng-parse-echo support/bs-ng-profiler support/fdnl \
	support/proccount support/showload support/showmem support/showsize \
	support/showtty support/showuptime support/truncpwd system/nx-rc; do
	sed -e "s/NG $1/NG $2/g" -i $file;
done

sed -e "s/$1/$2/g" -i debian/changelog

sed -e "s/v$1/v$2/g" -i configure

_svnver=$(svn info | grep Revision | gawk '{print $2}')

svnver=$(($_svnver+1))

sed -e "s/rev.*)/rev$svnver)/g" -i configure
