forked from Plattar/gltf-exporter
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcopy-sources-sketchfab.sh
30 lines (24 loc) · 1.55 KB
/
copy-sources-sketchfab.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh
# This script copies the updated versions of UnityGLTF
# onto this repository.
# WARNING - This is a destructive process
# delete old data
rm -rf ./unity-gltf-exporter/Assets/PlattarExporter/UnityGLTF
rm -rf ./unity-gltf-exporter/Assets/PlattarExporter/UnityGLTF.meta
rm -rf ./unity-gltf-exporter/Assets/PlattarExporter/Resources
rm -rf ./unity-gltf-exporter/Assets/PlattarExporter/Resources.meta
# create a fresh directory to copy new sources into
mkdir -p ./unity-gltf-exporter/Assets/PlattarExporter/UnityGLTF
# Copy the updated sources
cp -R ./../Sketchfab-UnityGLTF/UnityGLTF/Assets/UnityGLTF/Scripts ./unity-gltf-exporter/Assets/PlattarExporter/UnityGLTF
cp -R ./../Sketchfab-UnityGLTF/UnityGLTF/Assets/UnityGLTF/Shaders ./unity-gltf-exporter/Assets/PlattarExporter/UnityGLTF
cp -R ./../Sketchfab-UnityGLTF/UnityGLTF/Assets/UnityGLTF/Plugins ./unity-gltf-exporter/Assets/PlattarExporter/UnityGLTF
# Copy the Resources folder, has assets used by the exporter
cp -R ./../Sketchfab-UnityGLTF/UnityGLTF/Assets/Resources ./unity-gltf-exporter/Assets/PlattarExporter
# delete the editor folder
rm -rf ./unity-gltf-exporter/Assets/PlattarExporter/UnityGLTF/Scripts/Editor
rm -rf ./unity-gltf-exporter/Assets/PlattarExporter/UnityGLTF/Scripts/Editor.meta
rm -rf ./unity-gltf-exporter/Assets/PlattarExporter/UnityGLTF/Scripts/Sketchfab
rm -rf ./unity-gltf-exporter/Assets/PlattarExporter/UnityGLTF/Scripts/Sketchfab.meta
rm -rf ./unity-gltf-exporter/Assets/PlattarExporter/UnityGLTF/Scripts/Tests
rm -rf ./unity-gltf-exporter/Assets/PlattarExporter/UnityGLTF/Scripts/Tests.meta