Files
ReplayModCinematic/shade.sh
Marius Metzger 352fcbde4e Freed mouse during rendering process
Made replay_recordings and replay_videos folder customizable through config file (not recommended)
2015-04-06 19:15:55 +02:00

17 lines
320 B
Bash
Executable File

#!/bin/sh
JARPATH="$1"
LIBSPATH="$2"
FILENAME="$3"
TEMPDIR="./tempdir"
mkdir $TEMPDIR
unzip -o $LIBSPATH"/*.jar" -d $TEMPDIR
unzip -o $JARPATH -d $TEMPDIR
JARDIR=$(dirname "$JARPATH")
#Thanks to johni0702 for the following line of code <3
cd $TEMPDIR && ls | zip -r -@ "../$JARDIR/$FILENAME" && cd ..
rm -r $TEMPDIR