Skip to content

Commit

Permalink
Use singular form for folders
Browse files Browse the repository at this point in the history
  • Loading branch information
deniskovalchuk committed Sep 13, 2023
1 parent 6b3362a commit 92ac66c
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 21 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,27 +117,27 @@ target_link_libraries(application ftp::ftp)
Build and run tests:

```
utils/windows/build.ps1 [-BuildType Debug|Release] [-RunTest]
util/windows/build.ps1 [-BuildType Debug|Release] [-RunTest]
```

Clean the builds:

```
utils/windows/clean.ps1
util/windows/clean.ps1
```

### Linux/macOS

Build and run tests:

```
utils/unix/build.sh [--debug | --release] [--test]
util/unix/build.sh [--debug | --release] [--test]
```

Clean the builds:

```
utils/unix/clean.sh
util/unix/clean.sh
```

### Custom environment
Expand Down
6 changes: 3 additions & 3 deletions utils/unix/build.sh → util/unix/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ function parse_argument
}

SCRIPT_PATH=$(readlink -f "$0")
UTILS_UNIX_DIR=$(dirname "$SCRIPT_PATH")
UTILS_DIR=$(dirname "$UTILS_UNIX_DIR")
PROJECT_DIR=$(dirname "$UTILS_DIR")
UTIL_UNIX_DIR=$(dirname "$SCRIPT_PATH")
UTIL_DIR=$(dirname "$UTIL_UNIX_DIR")
PROJECT_DIR=$(dirname "$UTIL_DIR")

BUILD_TYPE=Release
BUILD_DIR=${PROJECT_DIR}/build/release
Expand Down
8 changes: 8 additions & 0 deletions util/unix/clean.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

SCRIPT_PATH=$(readlink -f "$0")
UTIL_UNIX_DIR=$(dirname "$SCRIPT_PATH")
UTIL_DIR=$(dirname "$UTIL_UNIX_DIR")
PROJECT_DIR=$(dirname "$UTIL_DIR")

rm -rf "${PROJECT_DIR}/build"
6 changes: 3 additions & 3 deletions utils/windows/build.ps1 → util/windows/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ function Get-Directory
}

$scriptPath = $PSCommandPath
$utilsWinDir = Get-Directory($scriptPath)
$utilsDir = Get-Directory($utilsWinDir)
$projectDir = Get-Directory($utilsDir)
$utilWinDir = Get-Directory($scriptPath)
$utilDir = Get-Directory($utilWinDir)
$projectDir = Get-Directory($utilDir)
$buildDir = Join-Path $projectDir "build"

if (-not (Test-Path $buildDir))
Expand Down
6 changes: 3 additions & 3 deletions utils/windows/clean.ps1 → util/windows/clean.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ function Get-Directory
}

$scriptPath = $PSCommandPath
$utilsWinDir = Get-Directory($scriptPath)
$utilsDir = Get-Directory($utilsWinDir)
$projectDir = Get-Directory($utilsDir)
$utilWinDir = Get-Directory($scriptPath)
$utilDir = Get-Directory($utilWinDir)
$projectDir = Get-Directory($utilDir)
$buildDir = Join-Path $projectDir "build"

if (Test-Path $buildDir)
Expand Down
8 changes: 0 additions & 8 deletions utils/unix/clean.sh

This file was deleted.

0 comments on commit 92ac66c

Please sign in to comment.