mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-16 20:35:09 +00:00
032ea9d958
Bash could be located at different places on different OSes. Bug: 57470 Change-Id: I8db54fe4b2b91b9b2f1a47756262e848cff39afe
26 lines
543 B
Bash
Executable file
26 lines
543 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
if [ $1 = "--reverse" ]; then
|
|
MLDIR=$2
|
|
else
|
|
MLDIR=$1
|
|
fi
|
|
|
|
JSDIR=$MLDIR/lib
|
|
CSSDIR=$MLDIR/css
|
|
IMGDIR=$MLDIR/img
|
|
HOOKSFILE=$MLDIR/hooks.txt
|
|
LOCALMLDIR=resources/multilightbox
|
|
|
|
if [ $1 = "--reverse" ]; then
|
|
cp $LOCALMLDIR/*.js $JSDIR
|
|
cp $LOCALMLDIR/multilightbox.css $CSSDIR
|
|
cp img/close.svg img/fullscreen.svg img/defullscreen.svg $IMGDIR
|
|
cp $LOCALMLDIR/hooks.txt $HOOKSFILE
|
|
else
|
|
cp $JSDIR/* resources/multilightbox/
|
|
cp $CSSDIR/* resources/multilightbox/
|
|
cp $IMGDIR/* img/
|
|
cp $HOOKSFILE resources/multilightbox/
|
|
fi
|