Skip to content

Instantly share code, notes, and snippets.

@julik
Created December 23, 2013 17:17
Show Gist options
  • Save julik/8100919 to your computer and use it in GitHub Desktop.
Save julik/8100919 to your computer and use it in GitHub Desktop.
curl http://logik-matchbook.org/MatchboxShaderCollection.tgz | tar xfz -; cp -r shaders /wherever-you-want/
@TonHabraken
Copy link

Script to update your MATCHBOX LOGIK shaders.

Change MBDIR & BACKUPFILENAME to your needs!

Copy this into a yourscript.sh .. and sh yourscript.sh to execute .. or add to /etc/crontab to automate it..

HOST=$(hostname)
DATE=$(date +%y_%m_%d)

MBDIR="[YOUR-LOGIK-SHADER-LOCATION]"
BACKUPFILENAME="[/YOUR-BACKUP-FILE-LOCATION]/LOGIK-BACKUP-"$DATE".tar.gz"

echo starting backup of LogikMatchboxShaders process on $DATE at $HOST

tar -czvf $BACKUPFILENAME $MBDIR

echo Done!
echo Starting update Logik Shaders set!

curl http://logik-matchbook.org/MatchboxShaderCollection.tgz | tar xfz -; /bin/cp -fr shaders/* "$MBDIR"

echo Done! Now go and show off to your clients!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment