From 733aeaf8aed92aa5df6f65ff0c252c30cdfe48b4 Mon Sep 17 00:00:00 2001
From: Roberto Bizzozero <roberto.bizzozero@live.it>
Date: Wed, 13 Mar 2019 14:24:39 +0100
Subject: [PATCH 2/2] provided cleaning

---
 include/libxml/threads.h | 1 +
 os400/make-include.sh    | 1 +
 os400/make-rpg.sh        | 4 ++++
 os400/make.sh            | 1 +
 4 files changed, 7 insertions(+)

diff --git a/include/libxml/threads.h b/include/libxml/threads.h
index 96f4b7b7..1a6fdbc7 100644
--- a/include/libxml/threads.h
+++ b/include/libxml/threads.h
@@ -73,6 +73,7 @@ XMLPUBFUN xmlGlobalStatePtr XMLCALL
 			xmlGetGlobalState(void);
 
 #ifdef HAVE_PTHREAD_H
+/* line has been folded to respect OS400 limit of 100 chars*/
 #elif defined(HAVE_WIN32_THREADS) && !defined(HAVE_COMPILER_TLS)\
        && (!defined(LIBXML_STATIC) || defined(LIBXML_STATIC_FOR_DLL))
 #if defined(LIBXML_STATIC_FOR_DLL)
diff --git a/os400/make-include.sh b/os400/make-include.sh
index 4e5b0589..a4084863 100644
--- a/os400/make-include.sh
+++ b/os400/make-include.sh
@@ -70,6 +70,7 @@ do      CMD="cat \"${HFILE}\""
                 CMD="CPY OBJ('`pwd`/tmphdrfile') TOOBJ('${DEST}')"
                 CMD="${CMD} TOCCSID(${TGTCCSID}) DTAFMT(*TEXT) REPLACE(*YES)"
                 system "${CMD}"
+                rm -f tmphdrfile
         fi
 
         IFSFILE="${IFSDIR}/include/libxml/`basename \"${HFILE}\" .in`"
diff --git a/os400/make-rpg.sh b/os400/make-rpg.sh
index 664b47bf..feeb9c1e 100644
--- a/os400/make-rpg.sh
+++ b/os400/make-rpg.sh
@@ -96,5 +96,9 @@ do      IFSCMD="cat \"${HFILE}\""
                 CMD="CPY OBJ('`pwd`/tmphdrfile') TOOBJ('${DB2DEST}')"
                 CMD="${CMD} TOCCSID(${TGTCCSID}) DTAFMT(*TEXT) REPLACE(*YES)"
                 system "${CMD}"
+                rm -f tmphdrfile
         fi
 done
+
+rm -f "tmpsubstfile"[12]
+
diff --git a/os400/make.sh b/os400/make.sh
index 860365eb..50cc9935 100644
--- a/os400/make.sh
+++ b/os400/make.sh
@@ -55,6 +55,7 @@ do      if [ -f "${TEXT}" ]
                         CMD="${CMD} TOCCSID(${TGTCCSID})"
                         CMD="${CMD} DTAFMT(*TEXT) REPLACE(*YES)"
                         system "${CMD}"
+                        rm -f "${TOPDIR}/tmpfile"[12]
                 fi
         fi
 done
-- 
2.17.1.windows.1

