Skip to content

Commit

Permalink
Include completion scripts in Darwin package
Browse files Browse the repository at this point in the history
  • Loading branch information
dduan committed Aug 7, 2020
1 parent a933c43 commit 488369d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Documentation/GettingStarted.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,4 +224,4 @@ for the corresponding `false` value.

DrString has a lot of CLI options! You may install one of the completion scripts
included in the project if one exists for your shell. You can find them
[here](../../Scirpts/completions).
[here](../../Scripts/completions).
5 changes: 3 additions & 2 deletions Scripts/package-darwin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ SWIFT_PATH=$(xcrun --find swift)
rm -rf $LIB_PATH
rm -rf $BIN_PATH
mkdir -p $LIB_PATH
mkdir -p $BUILD_PATH/bin
mkdir -p $BUILD_PATH/{bin,completions}
cp -r Scripts/completions/* $BUILD_PATH/completions
cp .build/release/drstring $BIN_PATH
cp "$(dirname $SWIFT_PATH)/../lib/swift/macosx/lib_InternalSwiftSyntaxParser.dylib" $LIB_PATH/lib_InternalSwiftSyntaxParser.dylib
install_name_tool -add_rpath @executable_path/../lib $BIN_PATH
tar -C $BUILD_PATH -czf drstring.tar.gz bin lib
tar -C $BUILD_PATH -czf drstring.tar.gz bin lib completions
mv drstring.tar.gz .build

0 comments on commit 488369d

Please sign in to comment.