Commit Graph

8 Commits

Author SHA1 Message Date
Yuta Saito
86700b63b1 [installer] Do not follow an existing symbolic link when overwriting
Without `-h` option, `ln` command makes a symbolic link under the existing
link destination like `Toolchains/swift-DEVELOPMENT-SNAPSHOT-XX.xctoolchain/`.

```
$ ln -fs swift-DEVELOPMENT-SNAPSHOT-XX.xctoolchain swift-latest.xctoolchain
$ ln -fs swift-DEVELOPMENT-SNAPSHOT-YY.xctoolchain swift-latest.xctoolchain
$ tree
|-- swift-DEVELOPMENT-SNAPSHOT-XX.xctoolchain
|   |-- swift-DEVELOPMENT-SNAPSHOT-YY.xctoolchain -> swift-DEVELOPMENT-SNAPSHOT-YY.xctoolchain
|-- swift-DEVELOPMENT-SNAPSHOT-YY.xctoolchain
|-- swift-latest.xctoolchain -> swift-DEVELOPMENT-SNAPSHOT-XX.xctoolchain
```

So we should not follow the existing symbolic link even if it already
exists.
2023-06-20 10:32:11 +00:00
Yuta Saito
ed70111668 Rename swift-latest symlink as swift-latest.xctoolchain
Toolchain installers distributed on https://swift.org/download creates a
symbolic link of the toolchain as `swift-latest.xctoolchain`, but postinstall
script in this repo creates as `swift-latest`.
This patch syncs the difference of symlink name.
2020-10-26 19:56:00 +09:00
practicalswift
6d1ae2a39c [gardening] 2016 → 2017 2017-01-06 16:41:22 +01:00
practicalswift
797b80765f [gardening] Use the correct base URL (https://swift.org) in references to the Swift website
Remove all references to the old non-TLS enabled base URL (http://swift.org)
2016-11-20 17:36:03 +01:00
Zach Panzarino
e3a4147ac9 Update copyright date 2015-12-31 23:28:40 +00:00
James McLaughlin
9da5899652 Consistently use env(1) to resolve bash and python paths 2015-12-03 20:55:27 +00:00
Mishal Shah
1cc28c769e Default toolchain install location changed to /Library 2015-11-30 14:50:52 -08:00
Mishal Shah
bc42387848 Create swift-latest symlink in darwin installer 2015-11-25 18:20:07 -08:00