summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbuild13
1 files changed, 3 insertions, 10 deletions
diff --git a/build b/build
index aa6d99dc..ab896706 100755
--- a/build
+++ b/build
@@ -166,16 +166,9 @@ build_release()
$err "build_release $srcdir: couldn't generate changelog"
(
- if [ "${mode}" = "u-boot" ]; then
- cd "${srcdir}/src/" || $err "${_xm}: mktarball \"${srcdir}\""
- mktarball u-boot "../../${srcdir##*/}.tar.xz" || \
- $err "$_xm: mksrc"
- # make a src archive containing only u-boot
- else
- cd "${srcdir%/*}" || $err "${_xm}: mktarball \"${srcdir}\""
- mktarball "${srcdir##*/}" "${srcdir##*/}.tar.xz" || \
- $err "$_xm: mksrc"
- fi
+ cd "${srcdir%/*}" || $err "${_xm}: mktarball \"${srcdir}\""
+ mktarball "${srcdir##*/}" "${srcdir##*/}.tar.xz" || \
+ $err "$_xm: mksrc"
) || $err "can't create src tarball"
[ "${mode}" = "src" ] && return 0
[ "${mode}" = "u-boot" ] && return 0