mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-24 08:13:38 +00:00
c0c9e7037f
Keep modules in separate dirs, move images to their module dirs, and fix up the module declarations so they still work. Also moved viewer.svg into the root. Bug: 56421 Change-Id: Ia84ddfd3b91c784c42d9ba243c5cfd46354f139f
26 lines
535 B
Bash
Executable file
26 lines
535 B
Bash
Executable file
#!/bin/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
|