Browse Source

factored out a apply_patchfiles funtion to save some duplicaton in the

package configuration


git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@1108 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc
rocklinux
Rene Rebe 21 years ago
parent
commit
114da341d0
1 changed files with 10 additions and 4 deletions
  1. +10
    -4
      scripts/functions

+ 10
- 4
scripts/functions

@ -406,6 +406,15 @@ register_badfiles() {
done
}
# Apply the given $patchfiles
#
apply_patchfiles() {
for x in $patchfiles; do
echo "Apply patch $x ..."
eval "patch $patchopt < $x"
done
}
# Main program for building a package
#
build_this_package() {
@ -456,10 +465,7 @@ build_this_package() {
#
if [ $autopatch = 1 ]; then
hook_eval prepatch
for x in $patchfiles; do
echo "Apply patch $x ..."
eval "patch $patchopt < $x"
done
apply_patchfiles
hook_eval postpatch
fi

Loading…
Cancel
Save