mirror of
https://github.com/Winded/StopMotionHelper.git
synced 2025-03-04 03:13:33 -05:00
20 lines
351 B
Bash
20 lines
351 B
Bash
#!/bin/sh
|
|
|
|
# Copy files to another folder that can be published to workshop
|
|
|
|
INPUT="$1"
|
|
OUTPUT="$2"
|
|
|
|
# Make output directory
|
|
mkdir -p "$OUTPUT"
|
|
|
|
# Copy all files to output
|
|
cp -r "$INPUT/" "$OUTPUT/"
|
|
|
|
# Remove non-lua files from output
|
|
find "$OUTPUT" -type f ! -name '*.lua' -delete
|
|
|
|
# Copy addon.json
|
|
cp "$INPUT/addon.json" "$OUTPUT"
|
|
|
|
echo "All done!" |