15 lines
146 B
Text
15 lines
146 B
Text
|
|
#!/bin/sh
|
||
|
|
usage()
|
||
|
|
{
|
||
|
|
printf 'usage: %s tag file\n' $0
|
||
|
|
exit 1
|
||
|
|
}
|
||
|
|
test $# '<' 2 && usage
|
||
|
|
tag="$1"
|
||
|
|
shift
|
||
|
|
sed "/<<Version>>=/ {
|
||
|
|
n;
|
||
|
|
c\\
|
||
|
|
$tag
|
||
|
|
}" $*
|