summaryrefslogtreecommitdiffstats
path: root/t/recipes/checks/control-files/control-field-traversal-4/build-spec/pre-data
diff options
context:
space:
mode:
Diffstat (limited to 't/recipes/checks/control-files/control-field-traversal-4/build-spec/pre-data')
-rwxr-xr-xt/recipes/checks/control-files/control-field-traversal-4/build-spec/pre-data13
1 files changed, 13 insertions, 0 deletions
diff --git a/t/recipes/checks/control-files/control-field-traversal-4/build-spec/pre-data b/t/recipes/checks/control-files/control-field-traversal-4/build-spec/pre-data
new file mode 100755
index 0000000..c14dcc8
--- /dev/null
+++ b/t/recipes/checks/control-files/control-field-traversal-4/build-spec/pre-data
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+set -e
+
+rootdir="$1"
+name="$2"
+
+docdir="$rootdir/usr/share/doc"
+
+rm -rf "$docdir"
+
+mkdir -p "$docdir/dpkg"
+ln -sf dpkg "$docdir/$name"