diff --git a/README.md b/README.md index 5bff591..f2aa9b7 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ ## Key features - Simple package and build description not getting in your way - - Integrated with Git, avoiding maintainance tasks such as incrementing version numbers or uploading new project releases + - Integrated with Git, avoiding maintenance tasks such as incrementing version numbers or uploading new project releases - Generates VisualD project/solution files, integrated into MonoD - Support for DMD, GDC and LDC (common DMD flags are translated automatically) - Supports development workflows by optionally using local directories as a package source diff --git a/scripts/win-installer/EnvVarUpdate.nsh b/scripts/win-installer/EnvVarUpdate.nsh index b67e3ba..245499b 100644 --- a/scripts/win-installer/EnvVarUpdate.nsh +++ b/scripts/win-installer/EnvVarUpdate.nsh @@ -145,7 +145,7 @@ Goto EnvVarUpdate_Restore_Vars ${EndIf} - ;;khc - here check if length is going to be greater then max string length + ;;khc - here check if length is going to be greater than max string length ;; and abort if so - also abort if original path empty - may mean ;; it was too long as well- write message to say set it by hand diff --git a/source/dub/commandline.d b/source/dub/commandline.d index a391089..08830c7 100644 --- a/source/dub/commandline.d +++ b/source/dub/commandline.d @@ -1106,7 +1106,7 @@ "Uses the latest pre-release version, even if release versions are available" ]); args.getopt("verify", &m_verify, [ - "Updates the project and performs a build. If successful, rewrites the selected versions file ." + "Updates the project and performs a build. If successful, rewrites the selected versions file ." ]); args.getopt("missing-only", &m_missingOnly, [ "Performs an upgrade only for dependencies that don't yet have a version selected. This is also done automatically before each build." diff --git a/source/dub/compilers/dmd.d b/source/dub/compilers/dmd.d index 61ec4a0..cacd045 100644 --- a/source/dub/compilers/dmd.d +++ b/source/dub/compilers/dmd.d @@ -212,7 +212,7 @@ auto args = ["-of"~tpath.toNativeString()]; args ~= objects; args ~= settings.sourceFiles; - version(linux) args ~= "-L--no-as-needed"; // avoids linker errors due to libraries being speficied in the wrong order by DMD + version(linux) args ~= "-L--no-as-needed"; // avoids linker errors due to libraries being specified in the wrong order by DMD args ~= lflagsToDFlags(settings.lflags); args ~= settings.dflags.filter!(f => isLinkerDFlag(f)).array; diff --git a/source/dub/compilers/gdc.d b/source/dub/compilers/gdc.d index bb5def1..7a20f54 100644 --- a/source/dub/compilers/gdc.d +++ b/source/dub/compilers/gdc.d @@ -209,7 +209,7 @@ args = [ "ar", "rcs", tpath ] ~ objects; } else { args = platform.compilerBinary ~ objects ~ settings.sourceFiles ~ settings.lflags ~ settings.dflags.filter!(f => isLinkageFlag(f)).array; - version(linux) args ~= "-L--no-as-needed"; // avoids linker errors due to libraries being speficied in the wrong order by DMD + version(linux) args ~= "-L--no-as-needed"; // avoids linker errors due to libraries being specified in the wrong order by DMD } logDiagnostic("%s", args.join(" ")); invokeTool(args, output_callback); diff --git a/source/dub/compilers/utils.d b/source/dub/compilers/utils.d index 48e312d..218fd87 100644 --- a/source/dub/compilers/utils.d +++ b/source/dub/compilers/utils.d @@ -142,7 +142,7 @@ /** Searches the given list of compiler flags for ones that have a generic equivalent. - Certain compiler flags should, instead of using compiler-specfic syntax, + Certain compiler flags should, instead of using compiler-specific syntax, be specified as build options (`BuildOptions`) or built requirements (`BuildRequirements`). This function will output warning messages to assist the user in making the best choice. @@ -238,7 +238,7 @@ /** - Generate a file that will give, at compile time, informations about the compiler (architecture, frontend version...) + Generate a file that will give, at compile time, information about the compiler (architecture, frontend version...) See_Also: `readPlatformProbe` */ diff --git a/source/dub/dependency.d b/source/dub/dependency.d index fdd9fe6..073ac91 100644 --- a/source/dub/dependency.d +++ b/source/dub/dependency.d @@ -308,7 +308,7 @@ } else { enforce("version" in verspec, "No version field specified!"); auto ver = verspec["version"].get!string; - // Using the string to be able to specifiy a range of versions. + // Using the string to be able to specify a range of versions. dep = Dependency(ver); } @@ -615,7 +615,7 @@ assert(a.merge(b) == b); assert(b.merge(a) == b); - logDebug("Dependency unittest sucess."); + logDebug("Dependency unittest success."); } unittest { diff --git a/source/dub/generators/build.d b/source/dub/generators/build.d index 10d7dee..71002f9 100644 --- a/source/dub/generators/build.d +++ b/source/dub/generators/build.d @@ -136,7 +136,7 @@ else cached = performCachedBuild(settings, buildsettings, pack, config, build_id, packages, additional_dep_files, target_path); // HACK: cleanup dummy doc files, we shouldn't specialize on buildType - // here and the compiler shouldn't need dummy doc ouput. + // here and the compiler shouldn't need dummy doc output. if (settings.buildType == "ddox") { if ("__dummy.html".exists) removeFile("__dummy.html"); @@ -203,7 +203,7 @@ private void performRDMDBuild(GeneratorSettings settings, ref BuildSettings buildsettings, in Package pack, string config, out Path target_path) { auto cwd = Path(getcwd()); - //Added check for existance of [AppNameInPackagejson].d + //Added check for existence of [AppNameInPackagejson].d //If exists, use that as the starting file. Path mainsrc; if (buildsettings.mainSourceFile.length) { diff --git a/source/dub/generators/generator.d b/source/dub/generators/generator.d index 7b67e52..7938cc7 100644 --- a/source/dub/generators/generator.d +++ b/source/dub/generators/generator.d @@ -461,7 +461,7 @@ /** Runs a list of build commands for a particular package. - This funtion sets all DUB speficic environment variables and makes sure + This function sets all DUB speficic environment variables and makes sure that recursive dub invocations are detected and don't result in infinite command execution loops. The latter could otherwise happen when a command runs "dub describe" or similar functionality. diff --git a/source/dub/init.d b/source/dub/init.d index 5c590fe..37e474d 100644 --- a/source/dub/init.d +++ b/source/dub/init.d @@ -21,7 +21,7 @@ import std.string; -/** Intializes a new package in the given directory. +/** Initializes a new package in the given directory. The given `root_path` will be checked for any of the files that will be created by this function. If any exist, an exception will be thrown before diff --git a/source/dub/internal/sdlang/ast.d b/source/dub/internal/sdlang/ast.d index cf0776c..deda488 100644 --- a/source/dub/internal/sdlang/ast.d +++ b/source/dub/internal/sdlang/ast.d @@ -946,7 +946,7 @@ } /// Access 'attributes', 'tags', 'namespaces' and 'all' like normal, - /// except that looking up a non-existant name/namespace with + /// except that looking up a non-existent name/namespace with /// opIndex(string) results in an empty array instead of a thrown SDLangRangeException. @property MaybeAccess maybe() { diff --git a/source/dub/internal/vibecompat/data/json.d b/source/dub/internal/vibecompat/data/json.d index 4a9bc00..1699f40 100644 --- a/source/dub/internal/vibecompat/data/json.d +++ b/source/dub/internal/vibecompat/data/json.d @@ -265,7 +265,7 @@ m_object[key] = Json.init; assert(m_object !is null); assert(key in m_object, "Failed to insert key '"~key~"' into AA!?"); - m_object[key].m_type = Type.undefined; // DMDBUG: AAs are teh $H1T!!!11 + m_object[key].m_type = Type.undefined; // DMDBUG: AAs are the $H1T!!!11 assert(m_object[key].type == Type.undefined); m_object[key].m_string = key; version (VibeJsonFieldNames) m_object[key].m_name = format("%s.%s", m_name, key); diff --git a/source/dub/packagemanager.d b/source/dub/packagemanager.d index dd0cf40..4ff4e6f 100644 --- a/source/dub/packagemanager.d +++ b/source/dub/packagemanager.d @@ -239,7 +239,7 @@ return isManagedPath(ppath); } - /** Determines if a specifc path is within a DUB managed package folder. + /** Determines if a specific path is within a DUB managed package folder. By default, managed folders are "~/.dub/packages" and "/var/lib/dub/packages". diff --git a/source/dub/recipe/packagerecipe.d b/source/dub/recipe/packagerecipe.d index a5b7609..b475b61 100644 --- a/source/dub/recipe/packagerecipe.d +++ b/source/dub/recipe/packagerecipe.d @@ -27,7 +27,7 @@ Sub qualified package names are lists of package names separated by ":". For example, "packa:packb:packc" references a package named "packc" that is a - sub package of "packb", wich in turn is a sub package of "packa". + sub package of "packb", which in turn is a sub package of "packa". */ string[] getSubPackagePath(string package_name) { diff --git a/test/0-init-multi-json.sh b/test/0-init-multi-json.sh index 8e0a441..c9fd92d 100755 --- a/test/0-init-multi-json.sh +++ b/test/0-init-multi-json.sh @@ -12,7 +12,7 @@ if [ ! -e $packname/dub.json ]; then # it failed, exit 1 exit 1 -else # check if resulting dub.json has all dependancies in tow +else # check if resulting dub.json has all dependencies in tow deps="$deps vibe-d"; IFS=" " read -a arr <<< "$deps" for ele in "${arr[@]}" diff --git a/test/0-init-multi.sh b/test/0-init-multi.sh index 5f74a3d..a03694e 100755 --- a/test/0-init-multi.sh +++ b/test/0-init-multi.sh @@ -14,7 +14,7 @@ echo "No dub.sdl file has been generated." cleanup exit 1 -else # check if resulting dub.sdl has all dependancies in tow +else # check if resulting dub.sdl has all dependencies in tow deps="$deps vibe-d"; IFS=" " read -a arr <<< "$deps" for ele in "${arr[@]}" diff --git a/test/issue782-gtkd-pkg-config/fake-gtkd/pkgconfig/fake-gtkd.pc b/test/issue782-gtkd-pkg-config/fake-gtkd/pkgconfig/fake-gtkd.pc index 1f06032..654ac32 100644 --- a/test/issue782-gtkd-pkg-config/fake-gtkd/pkgconfig/fake-gtkd.pc +++ b/test/issue782-gtkd-pkg-config/fake-gtkd/pkgconfig/fake-gtkd.pc @@ -6,7 +6,7 @@ Description: Fake GtkD shared library for testing Version: 1.0.0 #Requires: phobos2 -# The "-L-defaultlib=libphobos2.so" and "-defaultlib=libphobos2.so" should both end up on the compiler (at link stage) invokation as "-defaultlib=libphobos2.so" +# The "-L-defaultlib=libphobos2.so" and "-defaultlib=libphobos2.so" should both end up on the compiler (at link stage) invocation as "-defaultlib=libphobos2.so" # For this test, it doesn't hurt that they appear twice on the cmd line... Libs: -L-L${libdir} -L-l:libfake-gtkd.so -L-l:libdl.so.2 -pthread -L-defaultlib=libphobos2.so -defaultlib=libphobos2.so Cflags: -I${includedir} diff --git a/test/run-unittest.sh b/test/run-unittest.sh index b832b0f..deaf166 100755 --- a/test/run-unittest.sh +++ b/test/run-unittest.sh @@ -50,7 +50,7 @@ fi fi - # We run the ones that are supposed to be runned + # We run the ones that are supposed to be ran if [ ! -e $pack/.no_build ] && [ ! -e $pack/.no_run ]; then log "Running $pack..." $DUB run --force --root=$pack --compiler=$DC || logError "Run failure."