Merge "Add multilightbox library import/export script"

This commit is contained in:
Brion VIBBER 2013-09-29 17:31:57 +00:00 committed by Gerrit Code Review
commit 8b6012f5a0

23
importml.sh Executable file
View file

@ -0,0 +1,23 @@
#!/bin/bash
if [ $1 = "--reverse" ]; then
MLDIR=$2
else
MLDIR=$1
fi
JSDIR=$MLDIR/lib
CSSDIR=$MLDIR/css
IMGDIR=$MLDIR/img
if [ $1 = "--reverse" ]; then
cp js/multilightbox/* $JSDIR
cp css/multilightbox.css $CSSDIR
cp img/close.svg img/fullscreen.svg img/defullscreen.svg $IMGDIR
cp js/multilightbox/hooks.txt $MLDIR
else
cp $JSDIR/* js/multilightbox/
cp $CSSDIR/* css/
cp $IMGDIR/* img/
cp $MLDIR/hooks.txt js/multilightbox/
fi