summaryrefslogtreecommitdiffstats
path: root/http/vimprobable/PRE_BUILD
diff options
context:
space:
mode:
Diffstat (limited to 'http/vimprobable/PRE_BUILD')
-rwxr-xr-xhttp/vimprobable/PRE_BUILD12
1 files changed, 12 insertions, 0 deletions
diff --git a/http/vimprobable/PRE_BUILD b/http/vimprobable/PRE_BUILD
new file mode 100755
index 0000000000..404f1abfb6
--- /dev/null
+++ b/http/vimprobable/PRE_BUILD
@@ -0,0 +1,12 @@
+default_pre_build &&
+cd $SOURCE_DIRECTORY &&
+if [[ $VIMPROBABLE_OWN_CONFIGH == y ]]; then
+# check if the config file actually exists before attempting to copy it in
+# do not break if it isn't there
+if [[ -e $VIMPROBABLE_CONFIGH ]]; then
+message "File exists copying..."
+cp -v $VIMPROBABLE_CONFIGH $SOURCE_DIRECTORY/config.h
+else
+message "File ${QUERY_COLOR}${VIMPROBABLE_CONFIGH}${DEFAULT_COLOR} does not exist..."
+fi
+fi