44 lines
842 B
Bash
Executable File
44 lines
842 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# List of files to replicate
|
|
FILES=(
|
|
"LICENSE"
|
|
".gitignore"
|
|
".clang-format"
|
|
"CMakePresets.json"
|
|
"cmake/HDKDependencyPolicy.cmake"
|
|
"cmake/HDKExampleAssetsPolicy.cmake"
|
|
"cmake/HDKDocumentationPolicy.cmake"
|
|
"cmake/HDKPackaging.cmake"
|
|
)
|
|
|
|
# List of target directories
|
|
DIRECTORIES=(
|
|
"grid"
|
|
"sdl"
|
|
"is3r"
|
|
)
|
|
|
|
# Copy each file to each directory
|
|
for file in "${FILES[@]}"; do
|
|
if [ ! -f "$file" ]; then
|
|
echo "Warning: $file not found in current directory"
|
|
continue
|
|
fi
|
|
|
|
for dir in "${DIRECTORIES[@]}"; do
|
|
if [ ! -d "$dir" ]; then
|
|
echo "Warning: $dir directory not found"
|
|
continue
|
|
fi
|
|
|
|
# Ensure directory tree for file exists within target project
|
|
mkdir -p "$dir/$(dirname "$file")"
|
|
|
|
cp "$file" "$dir/$file"
|
|
echo "Copied $file to $dir"
|
|
done
|
|
done
|
|
|
|
echo "Done!"
|