Created
December 23, 2013 17:17
-
-
Save julik/8100919 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl http://logik-matchbook.org/MatchboxShaderCollection.tgz | tar xfz -; cp -r shaders /wherever-you-want/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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!