diff --git a/release-scripts/build-docs b/release-scripts/build-docs
index e909e6e6c37..ea1a846cedf 100755
--- a/release-scripts/build-docs
+++ b/release-scripts/build-docs
@@ -1,24 +1,25 @@
#!/bin/sh
-_exit() {
+_exit()
+{
echo $@
popd
exit 1
}
-DOCSRCDIR=`dirname $0`/../docs-xml
+DOCSRCDIR=$(dirname $0)/../docs-xml
pushd $DOCSRCDIR || exit 1
git clean -d -x -f
export XML_CATALOG_FILES="file:///etc/xml/catalog file://$(pwd)/build/catalog.xml"
-autoconf && \
- ./configure --with-papersize=letter && \
- make smbdotconf/parameters.all.xml && \
+autoconf &&
+ ./configure --with-papersize=letter &&
+ make smbdotconf/parameters.all.xml &&
make release
if [ $? != 0 ]; then
- _exit "Docs build failed!"
+ _exit "Docs build failed!"
fi
mkdir -p ../docs
diff --git a/release-scripts/build-htmlman-git b/release-scripts/build-htmlman-git
index d85c703f4e1..6971b6df8e1 100755
--- a/release-scripts/build-htmlman-git
+++ b/release-scripts/build-htmlman-git
@@ -16,7 +16,8 @@
# this program; if not, see .
#
-_exit() {
+_exit()
+{
echo $@
popd
exit 1
diff --git a/release-scripts/build-htmlman-nogit b/release-scripts/build-htmlman-nogit
index 57d0c423360..d5126b2719a 100755
--- a/release-scripts/build-htmlman-nogit
+++ b/release-scripts/build-htmlman-nogit
@@ -16,7 +16,8 @@
# this program; if not, see .
#
-_exit() {
+_exit()
+{
echo $@
popd
exit 1
diff --git a/release-scripts/build-manpages-git b/release-scripts/build-manpages-git
index af4734d0486..1c1f02d0a64 100755
--- a/release-scripts/build-manpages-git
+++ b/release-scripts/build-manpages-git
@@ -16,7 +16,8 @@
# this program; if not, see .
#
-_exit() {
+_exit()
+{
echo $@
popd
exit 1
diff --git a/release-scripts/build-manpages-nogit b/release-scripts/build-manpages-nogit
index 28743f47413..9573586dfe0 100755
--- a/release-scripts/build-manpages-nogit
+++ b/release-scripts/build-manpages-nogit
@@ -16,7 +16,8 @@
# this program; if not, see .
#
-_exit() {
+_exit()
+{
echo $@
popd
exit 1