From c1ca3aa7892b780e134e395d22ab6d2830a7074e Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Sun, 14 Apr 2013 12:48:41 -0400 Subject: [PATCH] slight cleanup, also new script for checking files for obscenities, which has already proven useful. --- database/fortunes.dat | 6 +----- nucleus/library/basis/definitions.h | 2 +- scripts/generator/vis_stu_vars.sh | 2 +- scripts/text/obscenity_check.sh | 24 ++++++++++++++++++++++++ 4 files changed, 27 insertions(+), 7 deletions(-) create mode 100644 scripts/text/obscenity_check.sh diff --git a/database/fortunes.dat b/database/fortunes.dat index 9b32ca0f..808e9f93 100644 --- a/database/fortunes.dat +++ b/database/fortunes.dat @@ -9231,7 +9231,7 @@ drugs if they collect the pee in their own mouths. the drug war is a war on liberty that cannot possibly be won without the utter removal of all rights or at least the indefinite suspension thereof. urine testing is the best emblem of this horrible war; it makes the police -look like a bunch of perverted piss sniffers. it is not cost effective +look like a bunch of perverted urine sniffers. it is not cost effective for testing large numbers of people and it is insanely easy to fake if one wants to anyway. we need to stop the drug war and start the war on ignorance. this ignorance is an ignorance of the REAL scientifically determined results @@ -15804,10 +15804,6 @@ not to be something but to be someone. -- Coco Chanel ~ -In other words, can you forgive the people who have pissed -you off in the past? If not, it seems like you're trapped -in their piss. Or yours. Or something. -~ If someone says 'can't', that shows you what to do. -- John Cage ~ diff --git a/nucleus/library/basis/definitions.h b/nucleus/library/basis/definitions.h index c76e10ae..421df898 100644 --- a/nucleus/library/basis/definitions.h +++ b/nucleus/library/basis/definitions.h @@ -182,7 +182,7 @@ public: // condition; the address of a local variable is being returned, making // the returned object junk in almost all cases. // 4996 turns off warnings about deprecated functions, which are mostly - // bullshit, since these are mainly the core posix functions. + // nonsense, since these are mainly the core posix functions. #endif // ms visual c++. ////////////// diff --git a/scripts/generator/vis_stu_vars.sh b/scripts/generator/vis_stu_vars.sh index 918b3de4..9f00b080 100644 --- a/scripts/generator/vis_stu_vars.sh +++ b/scripts/generator/vis_stu_vars.sh @@ -70,7 +70,7 @@ function setup_visual_studio_variables() # convert framework dir back or things yell like hell. export FrameworkDir=$(unix_to_dos_path $FrameworkDir) # the redirection of stderr to null is to get around an obnoxious cygwin - # warning that seems to be erroneously bitching about backslashes. + # warning that seems to be erroneously complaining about backslashes. # convert all other relevant paths back to dos form, or visual studio barfs. #export BUILD_SCRIPTS_DIR=$(unix_to_dos_path $BUILD_SCRIPTS_DIR) diff --git a/scripts/text/obscenity_check.sh b/scripts/text/obscenity_check.sh new file mode 100644 index 00000000..09cf0957 --- /dev/null +++ b/scripts/text/obscenity_check.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +# this script looks for any files containing offensive language, but one must +# fill out the list of inappropriate language to censor. this list is stored +# in a file in the user's home folder called ".badlanguage". +# given the bad word list (with one obscenity word per line), this will find +# any files that have those words in them and print them out. + +OBSCENITY_FILE="$HOME/.badlanguage" + +if [ ! -f "$OBSCENITY_FILE" ]; then + echo "This script requires a file with obscenities at: $OBSCENITY_FILE" + echo "The file should contain all obscene words that you wish to locate" + echo "in your files. Each obscene word should be listed one per line in" + echo "the bad word file." + exit 1 +fi + +# replace the line feeds with a grep pipe. +obscene_line="$(echo $(cat $OBSCENITY_FILE) | sed -e 's/ */\\|/g')" +#echo "obscenities: $obscene_line" + +bash "$FEISTY_MEOW_SCRIPTS/buildor/search_code.sh" "$obscene_line" $* + -- 2.34.1