From 90da0d46a152e24912d857654dd58df8433e863c Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Thu, 8 Dec 2022 23:04:21 -0600 Subject: [PATCH] Cleanup: Make changes to the build disable process documentation. --- build/disable/about.txt | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/build/disable/about.txt b/build/disable/about.txt index aeab674..5c3ede5 100644 --- a/build/disable/about.txt +++ b/build/disable/about.txt @@ -6,14 +6,23 @@ These files are generated like the following: # cd fll/ # cd level_0; -# for i in * ; do grep -hor "#ifndef _di_$i.*\>" $i | sed -e 's|^#ifndef |#define |g' | sort | uniq > ../build/disable/level_0/$i.h ; done +# for i in * ; do grep -hor '#ifndef _di_.*\>' $i | sed -e 's|^#ifndef |#define |g' | sort | uniq > ../build/disable/level_0/$i.h ; done # cd .. # cd level_1; -# for i in * ; do grep -hor "#ifndef _di_$i_.*\>" $i | sed -e 's|^#ifndef |#define |g' | sort | uniq > ../build/disable/level_1/$i.h ; done +# for i in * ; do grep -hor '#ifndef _di_.*\>' $i | sed -e 's|^#ifndef |#define |g' | sort | uniq > ../build/disable/level_1/$i.h ; done # cd .. # cd level_2; -# for i in * ; do grep -hor "#ifndef _di_$i_.*\>" $i | sed -e 's|^#ifndef |#define |g' | sort | uniq > ../build/disable/level_2/$i.h ; done +# for i in * ; do grep -hor '#ifndef _di_.*\>' $i | sed -e 's|^#ifndef |#define |g' | sort | uniq > ../build/disable/level_2/$i.h ; done + +# cd .. + +Make sure the parameter checking files do not exist. +# sed -i -e '/_di_level_0_parameter_checking_/d' -e '/_di_level_1_parameter_checking_/d' -e '/_di_level_2_parameter_checking_/d' build/disable/level_?/*.h + +There are some defines that need to be manually removed if they don't belong, such as "_di_pthread_support_" and "_di_libcap_". + +Use these files to construct a list of all defines to potentially disable based on the "dependencies" of a given project. -- 1.8.3.1