File: deblayout2svnprops

package info (click to toggle)
svn-buildpackage 0.6.23
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 296 kB
  • ctags: 58
  • sloc: perl: 1,635; makefile: 87; sh: 47
file content (19 lines) | stat: -rwxr-xr-x 401 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/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