diff --git a/dub.sdl b/dub.sdl index 0bb20dc..42bad87 100644 --- a/dub.sdl +++ b/dub.sdl @@ -7,7 +7,7 @@ libs "ssl" "crypto" platform="posix" configuration "library-autodetect" { targetType "sourceLibrary" excludedSourceFiles "source/deimos/openssl/applink.d" - preGenerateCommands `${DUB} scripts/generate_version.d` platform="posix" + preGenerateCommands `$DC -run scripts/generate_version.d` platform="posix" versions `DeimosOpenSSLAutoDetect` } diff --git a/scripts/generate_version.d b/scripts/generate_version.d index ae19cea..766bf28 100644 --- a/scripts/generate_version.d +++ b/scripts/generate_version.d @@ -30,7 +30,7 @@ import std.string; import std.uni; // file full path is: $SOME_PATH/openssl/scripts/generate_version.d -// We want: $SOME_PATH/openssl/deimos/openssl/ +// We want: $SOME_PATH/openssl/source/deimos/openssl/ immutable TARGET_DIR_PATH = __FILE_FULL_PATH__ .dirName.dirName.buildPath("source", "deimos", "openssl");