aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-01-04 12:55:24 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-01-04 12:55:24 +0300
commit5e27a630072aac95ba66478f270a3de5901b38f7 (patch)
tree4e71cbf08f54a1c43d8294b37111eb1ee7688c57
parentset %CYGWIN% before installing Cygwin (diff)
downloadsetup-cygwin-5e27a630072aac95ba66478f270a3de5901b38f7.tar.gz
setup-cygwin-5e27a630072aac95ba66478f270a3de5901b38f7.zip
rename symlinks-to-hardlinks to just hardlinks
-rw-r--r--.github/workflows/test.yml2
-rw-r--r--README.md28
-rw-r--r--action.yml6
3 files changed, 18 insertions, 18 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 5866f16..41c4079 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -48,7 +48,7 @@ jobs:
install-dir: C:\cg
packages: cmake gcc python3
env: '${{ matrix.env }}'
- symlinks-to-hardlinks: '${{ matrix.hardlinks }}'
+ hardlinks: '${{ matrix.hardlinks }}'
- name: Run bash
run: |
diff --git a/README.md b/README.md
index 497353d..2f63653 100644
--- a/README.md
+++ b/README.md
@@ -28,24 +28,24 @@ Provide a custom value using the `env` parameter.
An example is package python3, which (as of January 2021) installs symlink
"python3", pointing to the real executable "python3.8.exe".
Calling Cygwin symlinks from Windows' command prompt is unsupported, but
-there's an option to convert them to hardlinks instead (the
-`symlinks-to-hardlinks` parameter).
+there's an option to convert them to hardlinks instead (the `hardlinks`
+parameter).
API
---
-| Input | Value | Default | Description
-| --------------------- | ------- | ------- | -----------
-| platform | x64 | Yes | Install the 64-bit version.
-| | *Other* | No | Install the 32-bit version.
-| install-dir | *Empty* | Yes | Install to C:\tools\cygwin.
-| | *Other* | No | Install to the specified directory.
-| packages | *Empty* | Yes | Don't install any additional packages.
-| | *Other* | No | Space-separated package names.
-| env | *Empty* | Yes | Set `%CYGWIN%` to an empty string.
-| | *Other* | No | Set `%CYGWIN%` to the specified value.
-| symlinks-to-hardlinks | *Other* | Yes | Don't convert any symlinks.
-| | 1 | No | Convert symlinks in /usr/bin to hardlinks.
+| Input | Value | Default | Description
+| ----------- | ------- | ------- | -----------
+| platform | x64 | Yes | Install the 64-bit version.
+| | *Other* | No | Install the 32-bit version.
+| install-dir | *Empty* | Yes | Install to C:\tools\cygwin.
+| | *Other* | No | Install to the specified directory.
+| packages | *Empty* | Yes | Don't install any additional packages.
+| | *Other* | No | Space-separated package names.
+| env | *Empty* | Yes | Set `%CYGWIN%` to an empty string.
+| | *Other* | No | Set `%CYGWIN%` to the specified value.
+| hardlinks | *Other* | Yes | Don't convert any symlinks.
+| | 1 | No | Convert symlinks in /usr/bin to hardlinks.
The paths to the Cygwin binaries are added to the PATH variable.
diff --git a/action.yml b/action.yml
index 333e43f..fc5ecc4 100644
--- a/action.yml
+++ b/action.yml
@@ -16,7 +16,7 @@ inputs:
env:
description: Value to set as the CYGWIN environment variable
required: false
- symlinks-to-hardlinks:
+ hardlinks:
description: Convert symlinks in /usr/bin to hardlinks
required: false
default: 0
@@ -77,9 +77,9 @@ runs:
- run: |
New-Variable install_dir -Value '${{ inputs.install-dir }}' -Option Constant
- New-Variable symlinks_to_hardlinks -Value ('${{ inputs.symlinks-to-hardlinks }}' -eq '1') -Option Constant
+ New-Variable hardlinks -Value ('${{ inputs.hardlinks }}' -eq '1') -Option Constant
- if ($symlinks_to_hardlinks) {
+ if ($hardlinks) {
New-Variable bash -Value (Join-Path $install_dir bin bash.exe) -Option Constant
echo @'
while IFS= read -d '' -r link_path; do