mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-26 18:36:14 -04:00
improve including of custom js/css
This commit is contained in:
parent
340fbf4d44
commit
de32503f8e
6 changed files with 30 additions and 4 deletions
|
@ -54,10 +54,16 @@ echo "Clear minfified cache..."
|
|||
rm -f var/minified*
|
||||
|
||||
echo "ensure custom css/js files are created..."
|
||||
for f in $(cat "static/custom/.gitignore")
|
||||
FILES=( index pad timeslider )
|
||||
|
||||
for f in ${FILES[@]}
|
||||
do
|
||||
if [ ! -f "static/custom/$f" ]; then
|
||||
touch "static/custom/$f"
|
||||
if [ ! -f "static/custom/$f.js" ]; then
|
||||
cp -v "static/custom/js.template" "static/custom/$f.js" || exit 1
|
||||
fi
|
||||
|
||||
if [ ! -f "static/custom/$f.css" ]; then
|
||||
cp -v "static/custom/css.template" "static/custom/$f.css" || exit 1
|
||||
fi
|
||||
done
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue