Made a cute little build script for the *nix users out there

Showcase your libraries, tools and other projects that help your fellow love users.
Post Reply
mr_pitchfork
Prole
Posts: 1
Joined: Tue Dec 24, 2013 10:24 pm

Made a cute little build script for the *nix users out there

Post by mr_pitchfork »

I like to name this build.sh on my system. Just run ./build.sh to test your game without saving the build file. To deploy and name your game, run ./build.sh deploy GameName. If you don't specify a name, your game will be called "untitled".

Here is the script:

Code: Select all

#!/bin/bash

arg=$1
arg_flag="deploy"
name=$2
datetime=$(date +%Y%m%d)
: ${name:="untitled"}
name=$name$datetime

zip -9 -q -r "$name".love .
if [ "$arg" != "$arg_flag" ]; then
	love "$name".love
	rm -r "$name".love;
fi
echo "<3"
EDIT: taught the script how to love
Last edited by mr_pitchfork on Wed Dec 25, 2013 4:17 pm, edited 1 time in total.
User avatar
Doki Doki
Prole
Posts: 8
Joined: Tue Dec 17, 2013 6:58 pm

Re: Made a cute little build script for the *nix users out t

Post by Doki Doki »

Arigatou gozaimasuu ~ ! :ultrahappy:
Post Reply

Who is online

Users browsing this forum: yetneverdone and 2 guests