Commit f52e38cc authored by Diego Pasqualin's avatar Diego Pasqualin

Revert "build_package: Change current dir to package root before run {pre,post}build"

This reverts commit 8e937d23.
parent d057894e
......@@ -145,17 +145,14 @@ if test -z "$KIND"; then
fi
# Run prebuild script
packageroot="$REPOROOT/$PKG"
cd $packageroot
if test -x "prebuild"; then
prebuild="$REPOROOT/$PKG/prebuild"
if test -x "$prebuild"; then
echo "Running prebuild script..."
if ! ./prebuild; then
if ! $prebuild; then
echo "ERROR while running prebuild script."
cd $PREFIX
exit 5
fi
fi
cd $PREFIX
# Update package doc (authors and license)
copyDoc "$PKG"
......@@ -172,15 +169,13 @@ if ! createPackage "$PKG"; then
fi
# Run postbuild script
cd $packageroot
if test -x "postbuild"; then
postbuild="$REPOROOT/$PKG/postbuild"
if test -x "$postbuild"; then
echo "Running postbuild script..."
if ! ./postbuild; then
if ! $postbuild; then
echo "ERROR while running postbuild script."
cd $PREFIX
exit 7
fi
fi
cd $PREFIX
exit 0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment