mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-03 19:57:35 +00:00
22 lines
712 B
Bash
22 lines
712 B
Bash
#!/bin/bash
|
|
|
|
set -euo pipefail
|
|
|
|
TMPDIR=$(mktemp -d)
|
|
echo "Using temporary directory: $TMPDIR"
|
|
|
|
rootdir=$(git rev-parse --show-toplevel)
|
|
|
|
files_to_copy=("toolchain/spec/openapi*" "models/llama3/datatypes.py" "toolchain/inference/api/*.py" "agentic_system/api/*.py" "toolchain/common/*.py" "toolchain/dataset/api/*.py" "toolchain/evaluations/api/*.py" "toolchain/reward_scoring/api/*.py" "toolchain/post_training/api/*.py" "toolchain/safety/api/*.py")
|
|
for file in "${files_to_copy[@]}"; do
|
|
relpath="$file"
|
|
set -x
|
|
mkdir -p "$TMPDIR/$(dirname $relpath)"
|
|
eval cp "$rootdir/$relpath" "$TMPDIR/$(dirname $relpath)"
|
|
set +x
|
|
done
|
|
|
|
cd "$TMPDIR"
|
|
zip -r output.zip .
|
|
|
|
echo "Zip at: $TMPDIR/output.zip"
|