2013-11-23 01:23:48 +00:00
|
|
|
#!/usr/bin/env bash
|
2013-09-03 23:53:27 +00:00
|
|
|
|
|
|
|
if [ $1 = "--reverse" ]; then
|
|
|
|
MLDIR=$2
|
|
|
|
else
|
|
|
|
MLDIR=$1
|
|
|
|
fi
|
|
|
|
|
|
|
|
JSDIR=$MLDIR/lib
|
|
|
|
CSSDIR=$MLDIR/css
|
|
|
|
IMGDIR=$MLDIR/img
|
2013-11-05 22:21:02 +00:00
|
|
|
HOOKSFILE=$MLDIR/hooks.txt
|
|
|
|
LOCALMLDIR=resources/multilightbox
|
2013-09-03 23:53:27 +00:00
|
|
|
|
|
|
|
if [ $1 = "--reverse" ]; then
|
2013-11-05 22:21:02 +00:00
|
|
|
cp $LOCALMLDIR/*.js $JSDIR
|
|
|
|
cp $LOCALMLDIR/multilightbox.css $CSSDIR
|
2013-09-03 23:53:27 +00:00
|
|
|
cp img/close.svg img/fullscreen.svg img/defullscreen.svg $IMGDIR
|
2013-11-05 22:21:02 +00:00
|
|
|
cp $LOCALMLDIR/hooks.txt $HOOKSFILE
|
2013-09-03 23:53:27 +00:00
|
|
|
else
|
2013-11-05 22:21:02 +00:00
|
|
|
cp $JSDIR/* resources/multilightbox/
|
|
|
|
cp $CSSDIR/* resources/multilightbox/
|
2013-09-03 23:53:27 +00:00
|
|
|
cp $IMGDIR/* img/
|
2013-11-05 22:21:02 +00:00
|
|
|
cp $HOOKSFILE resources/multilightbox/
|
2013-09-03 23:53:27 +00:00
|
|
|
fi
|