#!/bin/sh

help ()
{
	echo "$0 allows to port the information from debian/svn-deblayout into svn properties."
	echo "Storing layout information in svn properties is supported since 0.6.16."
	echo
	echo "Usage: $0 debian/svn-deblayout"
	exit 1
}

[ -z "$1" ] && help

cat "$1" | while read A
do
	PROP=`echo $A | sed 's/=.*$//'`
	VAL=`echo $A | sed 's/^.*=//'`
	svn ps "svn-bp:$PROP" "$VAL" debian
done
