mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-27 17:40:06 +00:00
Add multilightbox library import/export script
Nice script for easily sharing changes between the library and the extension. Tested a few times. Change-Id: I6de5d95e78113f8f2ac4e0adba1abc7261886890
This commit is contained in:
parent
4898f42e18
commit
46ae057c6f
23
importml.sh
Executable file
23
importml.sh
Executable 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
|
Loading…
Reference in a new issue