Split installation and setup into separate scripts
This commit is contained in:
parent
d984752286
commit
f767a7a363
10
Makefile
10
Makefile
@ -1,10 +1,14 @@
|
||||
.PHONY: clean setup all
|
||||
.PHONY: clean install setup all
|
||||
|
||||
all: clean setup
|
||||
all: clean install setup
|
||||
|
||||
clean:
|
||||
@rm -rf workspace/
|
||||
|
||||
install:
|
||||
@mkdir -p workspace/
|
||||
@./setup/install.sh Blender4.2 blender-4.2.1-linux-x64.tar.xz
|
||||
|
||||
setup:
|
||||
@mkdir -p workspace/
|
||||
@./setup/setup.sh Blender4.2 blender-4.2.1-linux-x64.tar.xz http://localhost:8080
|
||||
@./setup/setup.sh http://localhost:8080
|
||||
|
20
setup/install.sh
Executable file
20
setup/install.sh
Executable file
@ -0,0 +1,20 @@
|
||||
TARBALL=$2
|
||||
DIRECTORY="workspace/${TARBALL%.tar.xz}"
|
||||
BINARY=$DIRECTORY/blender
|
||||
SCRIPTS=$(pwd)/setup
|
||||
echo $TARBALL - $DIRECTORY - $BINARY - $SCRIPTS
|
||||
|
||||
# Create directory for writing
|
||||
mkdir -p workspace/
|
||||
# Ensure blender workspace does not exist
|
||||
rm -rf workspace/$DIRECTORY/
|
||||
|
||||
# Download blender from URL and write it to workspacem and extract the tarball
|
||||
wget https://download.blender.org/release/$1/$TARBALL -O workspace/$TARBALL
|
||||
echo "Extracting $TARBALL..."
|
||||
tar -xf workspace/$TARBALL -C workspace/
|
||||
|
||||
# Export binary location
|
||||
export blender=workspace/$BINARY
|
||||
echo "--- Please add the following location to your PATH:"
|
||||
echo | whereis blender
|
@ -1,23 +1,5 @@
|
||||
TARBALL=$2
|
||||
DIRECTORY="workspace/${TARBALL%.tar.xz}"
|
||||
BINARY=$DIRECTORY/blender
|
||||
SCRIPTS=$(pwd)/setup
|
||||
HOST=$3
|
||||
echo $TARBALL - $DIRECTORY - $BINARY - $SCRIPTS - $HOST
|
||||
|
||||
# Create directory for writing
|
||||
mkdir -p workspace/
|
||||
# Ensure blender workspace does not exist
|
||||
rm -rf workspace/$DIRECTORY/
|
||||
|
||||
# Download blender from URL and write it to workspacem and extract the tarball
|
||||
wget https://download.blender.org/release/$1/$TARBALL -O workspace/$TARBALL
|
||||
echo "Extracting $TARBALL..."
|
||||
tar -xf workspace/$TARBALL -C workspace/
|
||||
|
||||
# Export binary location
|
||||
export blender=workspace/$BINARY
|
||||
echo | whereis blender
|
||||
HOST=$1
|
||||
|
||||
# Download the extension from Flamenco and install it
|
||||
wget $HOST/flamenco-addon.zip -O workspace/flamenco-addon.zip
|
||||
|
Loading…
Reference in New Issue
Block a user