mirror of
https://github.com/swift-server/swift-aws-lambda-runtime.git
synced 2026-06-02 07:27:33 +00:00
d956b89dbc
motivation: clearer examples as we prepare to open source changes: * rename debugging example to make the name more accurate * add more information in the local debugging example * add a Shared module to show how to share code between client and server * make example more useful - use JSON for registration like flow * add docker-compose task to test examples Co-authored-by: Yim Lee <yim_lee@apple.com>
28 lines
799 B
Bash
Executable File
28 lines
799 B
Bash
Executable File
#!/bin/bash
|
|
##===----------------------------------------------------------------------===##
|
|
##
|
|
## This source file is part of the SwiftAWSLambdaRuntime open source project
|
|
##
|
|
## Copyright (c) 2020 Apple Inc. and the SwiftAWSLambdaRuntime project authors
|
|
## Licensed under Apache License v2.0
|
|
##
|
|
## See LICENSE.txt for license information
|
|
## See CONTRIBUTORS.txt for the list of SwiftAWSLambdaRuntime project authors
|
|
##
|
|
## SPDX-License-Identifier: Apache-2.0
|
|
##
|
|
##===----------------------------------------------------------------------===##
|
|
|
|
set -eu
|
|
|
|
executable=$1
|
|
|
|
target=.build/lambda/$executable
|
|
rm -rf "$target"
|
|
mkdir -p "$target"
|
|
cp ".build/release/$executable" "$target/"
|
|
cp -Pv /usr/lib/swift/linux/lib*so* "$target"
|
|
cd "$target"
|
|
ln -s "$executable" "bootstrap"
|
|
zip --symlinks lambda.zip *
|