[nasm:master] Nindent: modernize (greatly simplify) and move to tools/

nasm-bot for H. Peter Anvin hpa at zytor.com
Wed Oct 11 10:42:08 PDT 2023


Commit-ID:  8917088988640790e0f5447e5a01d1a269d96ce3
Gitweb:     http://repo.or.cz/w/nasm.git?a=commitdiff;h=8917088988640790e0f5447e5a01d1a269d96ce3
Author:     H. Peter Anvin <hpa at zytor.com>
AuthorDate: Wed, 11 Oct 2023 10:37:34 -0700
Committer:  H. Peter Anvin <hpa at zytor.com>
CommitDate: Wed, 11 Oct 2023 10:37:34 -0700

Nindent: modernize (greatly simplify) and move to tools/



---
 misc/Nindent  | 18 ------------------
 tools/Nindent |  2 ++
 2 files changed, 2 insertions(+), 18 deletions(-)

diff --git a/misc/Nindent b/misc/Nindent
deleted file mode 100755
index a6c806ca..00000000
--- a/misc/Nindent
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/bin/sh
-PARAM="-npro -kr -i8 -ts8 -sob -l80 -ss -ncs -cp1"
-RES=`indent --version`
-V1=`echo $RES | cut -d' ' -f3 | cut -d'.' -f1`
-V2=`echo $RES | cut -d' ' -f3 | cut -d'.' -f2`
-V3=`echo $RES | cut -d' ' -f3 | cut -d'.' -f3`
-if [ $V1 -gt 2 ]; then
-  PARAM="$PARAM -il0"
-elif [ $V1 -eq 2 ]; then
-  if [ $V2 -gt 2 ]; then
-    PARAM="$PARAM -il0";
-  elif [ $V2 -eq 2 ]; then
-    if [ $V3 -ge 10 ]; then
-      PARAM="$PARAM -il0"
-    fi
-  fi
-fi
-exec indent $PARAM "$@"
diff --git a/tools/Nindent b/tools/Nindent
new file mode 100755
index 00000000..cf4eb69e
--- /dev/null
+++ b/tools/Nindent
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec indent -npro -linux -i4 -nut "$@"


More information about the Nasm-commits mailing list