diff --git a/build-scripts/clean-dependencies b/build-scripts/clean-dependencies deleted file mode 100755 index d929141ce..000000000 --- a/build-scripts/clean-dependencies +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh - -. `dirname "$0"`/functions -. detect-environment -. compile-options - -set -ex -for dep in $DEPS -do - rm -rf $dep -done diff --git a/user-scripts/README.md b/user-scripts/README.md new file mode 100644 index 000000000..9a3bb273a --- /dev/null +++ b/user-scripts/README.md @@ -0,0 +1,5 @@ +# User Scripts + +This is a collection of scripts for your convenience. They are not part of build +scripts, but can be useful when building locally or when you're tinkering +around. diff --git a/user-scripts/clean-dependencies b/user-scripts/clean-dependencies new file mode 100755 index 000000000..e26355896 --- /dev/null +++ b/user-scripts/clean-dependencies @@ -0,0 +1,15 @@ +#!/bin/sh + +# This script removes previously compiled dependencies which are later packaged +# into CFEngine. When you want to do a fresh build it can be nice to remove +# them in advance. + +. "$(dirname "$0")"/../build-scripts/functions +. "$(dirname "$0")"/../build-scripts/detect-environment +. "$(dirname "$0")"/../build-scripts/compile-options + +set -ex +for dep in $DEPS +do + rm -rf "$dep" +done