]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:tests: Reformat dlopen.sh
authorAndreas Schneider <asn@samba.org>
Fri, 22 Apr 2022 13:34:08 +0000 (15:34 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 2 May 2022 23:15:37 +0000 (23:15 +0000)
shfmt -f source3/script/| xargs shfmt -w -p -i 0 -fn

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/script/tests/dlopen.sh

index 6412bc5fcd42968e7509d8938ce2be0470a74654..de54d6dde390af02bf046f7d579432cc2eb8ca48 100755 (executable)
@@ -15,9 +15,9 @@
 # You should have received a copy of the GNU General Public License
 # along with this program; if not, see <http://www.gnu.org/licenses/>.
 
-tempdir=`mktemp -d /tmp/dlopenXXXXXX`
+tempdir=$(mktemp -d /tmp/dlopenXXXXXX)
 test -n "$tempdir" || exit 1
-cat >> $tempdir/dlopen.c << _EOF
+cat >>$tempdir/dlopen.c <<_EOF
 #include <dlfcn.h>
 #include <stdio.h>
 #include <limits.h>
@@ -48,14 +48,14 @@ int main(int argc, char **argv)
 }
 _EOF
 
-for arg in $@ ; do
+for arg in $@; do
        case "$arg" in
-       "")
-               ;;
-       -I*|-D*|-f*|-m*|-g*|-O*|-W*)
+       "") ;;
+
+       -I* | -D* | -f* | -m* | -g* | -O* | -W*)
                cflags="$cflags $arg"
                ;;
-       -l*|-L*)
+       -l* | -L*)
                ldflags="$ldflags $arg"
                ;;
        /*)
@@ -70,10 +70,10 @@ done
 ${CC:-gcc} $RPM_OPT_FLAGS $CFLAGS -o $tempdir/dlopen $cflags $tempdir/dlopen.c $ldflags
 
 retval=0
-for module in $modules ; do
+for module in $modules; do
        case "$module" in
-       "")
-               ;;
+       "") ;;
+
        /*)
                $tempdir/dlopen "$module"
                retval=$?