Skip to content

Commit

Permalink
Naming
Browse files Browse the repository at this point in the history
  • Loading branch information
deniskovalchuk committed Sep 15, 2023
1 parent 51d8a05 commit bfc8b00
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 @@ -119,27 +119,27 @@ target_link_libraries(application ftp::ftp)
Build and run tests:

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

Clean the builds:

```
util/windows/clean.ps1
tool/windows/clean.ps1
```

### Linux/macOS

Build and run tests:

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

Clean the builds:

```
util/unix/clean.sh
tool/unix/clean.sh
```

### Custom environment
Expand Down
6 changes: 3 additions & 3 deletions util/unix/build.sh → tool/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")
UTIL_UNIX_DIR=$(dirname "$SCRIPT_PATH")
UTIL_DIR=$(dirname "$UTIL_UNIX_DIR")
PROJECT_DIR=$(dirname "$UTIL_DIR")
TOOL_UNIX_DIR=$(dirname "$SCRIPT_PATH")
TOOL_DIR=$(dirname "$TOOL_UNIX_DIR")
PROJECT_DIR=$(dirname "$TOOL_DIR")

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

SCRIPT_PATH=$(readlink -f "$0")
TOOL_UNIX_DIR=$(dirname "$SCRIPT_PATH")
TOOL_DIR=$(dirname "$TOOL_UNIX_DIR")
PROJECT_DIR=$(dirname "$TOOL_DIR")

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

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

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

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

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

This file was deleted.

0 comments on commit bfc8b00

Please sign in to comment.