replace function should process multiple paths
This commit is contained in:
parent
26fbce3103
commit
3df4ee4839
1 changed files with 1 additions and 1 deletions
|
|
@ -58,7 +58,7 @@ pkgversion(){
|
|||
dpkg-parsechangelog --show-field Version
|
||||
}
|
||||
replace(){
|
||||
find $3 -type f -not -iregex '.*changelog.*' -not -iregex '.*copyright.*' -execdir /bin/sed --follow-symlinks -i s^"$1"^"$2"^g {} \;
|
||||
find ${@:3} -type f -not -iregex '.*changelog.*' -not -iregex '.*copyright.*' -execdir /bin/sed --follow-symlinks -i s^"$1"^"$2"^g {} \;
|
||||
}
|
||||
changelog(){
|
||||
head -n 1 debian/changelog | grep -q $UPSTREAM-security && REPO=$CODENAME-security || REPO=$CODENAME
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue