Skip to content

Commit c8427a1

Browse files
committed
clean-dependencies: Documented clean-dependencies
The script is not used in build-scripts, but can be convenient when building locally or tinkering around. Since the amount of scripts in build-scripts is already overwhelming, I decided to move it to user-scripts. Ticket: ENT-12600 Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
1 parent 1cbd3df commit c8427a1

3 files changed

Lines changed: 20 additions & 11 deletions

File tree

build-scripts/clean-dependencies

Lines changed: 0 additions & 11 deletions
This file was deleted.

user-scripts/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# User Scripts
2+
3+
This is a collection of scripts for your convenience. They are not part of build
4+
scripts, but can be useful when building locally or when you're tinkering
5+
around.

user-scripts/clean-dependencies

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/sh
2+
3+
# This script removes previously compiled dependencies which are later packaged
4+
# into CFEngine. When you want to do a fresh build it can be nice to remove
5+
# them in advance.
6+
7+
. "$(dirname "$0")"/../build-scripts/functions
8+
. "$(dirname "$0")"/../build-scripts/detect-environment
9+
. "$(dirname "$0")"/../build-scripts/compile-options
10+
11+
set -ex
12+
for dep in $DEPS
13+
do
14+
rm -rf "$dep"
15+
done

0 commit comments

Comments
 (0)