new file for minimizing disk impact
authorChris Koeritz <fred@gruntose.com>
Sat, 4 Nov 2017 18:46:13 +0000 (14:46 -0400)
committerChris Koeritz <fred@gruntose.com>
Sat, 4 Nov 2017 18:46:13 +0000 (14:46 -0400)
we don't always want all the generated junk, which weighs in at like ~430 megs these days.  this script winnows out the things most people will not need, once they've generated the binaries with the production process.

scripts/generator/minimize_feisty_meow.sh [new file with mode: 0644]

diff --git a/scripts/generator/minimize_feisty_meow.sh b/scripts/generator/minimize_feisty_meow.sh
new file mode 100644 (file)
index 0000000..93e5aca
--- /dev/null
@@ -0,0 +1,26 @@
+#!/bin/bash
+
+# cleans up the generated files that most people don't use.
+# this includes some static libraries and all of the tests, as well as
+# the install bundles.
+
+echo "Cleaning up feisty meow generated files..."
+
+pushd $GENERATED_STORE
+
+\rm -rf logs clam_tmp temporaries/*
+
+pushd runtime
+
+\rm -rf install/*
+
+pushd binaries
+
+\rm -rf *.a *.library test_*
+
+popd
+popd
+popd
+
+echo "Finished with feisty meow generated file cleaning."
+