summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/generate_p_files.sh
diff options
context:
space:
mode:
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/generate_p_files.sh')
-rwxr-xr-xdebian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/generate_p_files.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/generate_p_files.sh b/debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/generate_p_files.sh
new file mode 100755
index 00000000..2327b7c7
--- /dev/null
+++ b/debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/generate_p_files.sh
@@ -0,0 +1,21 @@
+#! /bin/sh
+#
+# Author: guy maurel
+# May 2022
+#
+# generate p-files from the sources
+#
+# the test is only useful for the developers
+#
+LIST=`ls -1 ../src/*.cpp`
+LIST_H=`ls -1 ../src/*.h`
+P_FILES="../build/P-files"
+#
+mkdir -p ${P_FILES}
+#
+for each in ${LIST} ${LIST_H}
+do
+ bn=`basename ${each}`
+ echo ${bn}
+ uncrustify -q -c ../forUncrustifySources.cfg -f ${each} -o /dev/null -p ${P_FILES}/${bn}-p.txt
+done