slight cleanup, also new script for checking files for obscenities, which has already
authorChris Koeritz <fred@gruntose.com>
Sun, 14 Apr 2013 16:48:41 +0000 (12:48 -0400)
committerChris Koeritz <fred@gruntose.com>
Sun, 14 Apr 2013 16:48:41 +0000 (12:48 -0400)
proven useful.

database/fortunes.dat
nucleus/library/basis/definitions.h
scripts/generator/vis_stu_vars.sh
scripts/text/obscenity_check.sh [new file with mode: 0644]

index 9b32ca0f2dae4b6ce8b43fa0056302a1733b1bd5..808e9f93839616175f0815f8f6705c07b29590b1 100644 (file)
@@ -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
 ~
index c76e10ae35fa0c699032e626d835d6c6a1367fcc..421df898e14ee8ec03070d1a090c1b1f1d9e8976 100644 (file)
@@ -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++.
 
 //////////////
index 918b3de446d205605e3e559dfe41d58d0accabbd..9f00b080f28405b0be270d1b645b5f230be60233 100644 (file)
@@ -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 (file)
index 0000000..09cf095
--- /dev/null
@@ -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" $*
+