Skip to content

Commit

Permalink
extension/tools: update license.sh to work with extension/LICENSE
Browse files Browse the repository at this point in the history
And add LICENSE to the docs module.

Change-Id: Ib1b60b2022cd31d033370e26a1d098a5d525a74c
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/592815
Reviewed-by: Suzy Mueller <suzmue@golang.org>
Commit-Queue: Hyang-Ah Hana Kim <hyangah@gmail.com>
kokoro-CI: kokoro <noreply+kokoro@google.com>
Auto-Submit: Hyang-Ah Hana Kim <hyangah@gmail.com>
  • Loading branch information
hyangah committed Jun 21, 2024
1 parent 5584351 commit dfdb3b8
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 4 deletions.
24 changes: 24 additions & 0 deletions docs/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
vscode-go

The MIT License (MIT)

Original Work Copyright (c) 2015-2020 Microsoft Corporation
Current Work and Modifications Copyright (c) 2020-present The Go Authors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
9 changes: 5 additions & 4 deletions extension/tools/license.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ WORKTREE="$(mktemp -d)"
BRANCH="license-gen-$(date +%Y%m%d%H%M%S)"

git fetch
git worktree add --track -b "${BRANCH}" "${WORKTREE}" origin/master
git worktree add --track -b "${BRANCH}" "${WORKTREE}" origin/release

cd "${WORKTREE}"
EXTENSIONDIR="${WORKTREE}/extension"
cd "${EXTENSIONDIR}"
export GIT_GOFMT_HOOK=off

YARN="${ROOT}/node_modules/.bin/yarn"
Expand Down Expand Up @@ -74,5 +75,5 @@ then
printf "\n" >> "${LICENSEFILE}"
cat thirdpartynotices.txt >> "${LICENSEFILE}"
fi

cd - && mv "${WORKTREE}/${LICENSEFILE}" . && git worktree remove "${WORKTREE}" -f
cd "${ROOT}" && mv "${EXTENSIONDIR}/${LICENSEFILE}" "${LICENSEFILE}" && git worktree remove "${WORKTREE}" -f

0 comments on commit dfdb3b8

Please sign in to comment.