From d87abf675f4fc8900eb884e029da6e8fa6dc0860 Mon Sep 17 00:00:00 2001 From: Benedikt Meier Date: Fri, 7 Feb 2025 09:39:39 +0100 Subject: [PATCH] Adjustments by @bjosel in the localinstall.sh to make it work completely for the Docker Dataverse Previewers. https://github.com/gdcc/dataverse-previewers/issues/86 --- localinstall.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) mode change 100644 => 100755 localinstall.sh diff --git a/localinstall.sh b/localinstall.sh old mode 100644 new mode 100755 index 55b93b7..8876160 --- a/localinstall.sh +++ b/localinstall.sh @@ -30,6 +30,15 @@ sed -n 's/.* urls_css.txt source replace_css.sh cat urls_css.txt + +echo Downloading local copies of remote fonts: +fonturl=`grep -m 1 https://stackpath.bootstrapcdn.com/ replace_css.sh | cut -d',' -f 2 | sed s,css/bootstrap.min.css,fonts,` +echo $fonturl/glyphicons-halflings-regular.eot > urls_fonts.txt +echo $fonturl/glyphicons-halflings-regular.svg >> urls_fonts.txt +echo $fonturl/glyphicons-halflings-regular.ttf >> urls_fonts.txt +echo $fonturl/glyphicons-halflings-regular.woff >> urls_fonts.txt +echo $fonturl/glyphicons-halflings-regular.woff2 >> urls_fonts.txt + if [ ! -d ./lib ]; then mkdir ./lib fi @@ -38,6 +47,14 @@ while read url; do wget --quiet $url done < "../urls_js.txt" +cd ".." +if [ ! -d ./fonts ]; then + mkdir ./fonts +fi +cd ./fonts +while read url; do + wget --quiet $url +done < "../urls_fonts.txt" cd ".." if [ ! -d ./css ]; then @@ -63,6 +80,7 @@ fi echo Cleaning Up... rm urls_js.txt rm urls_css.txt +rm urls_fonts.txt rm replace_js.sh rm replace_css.sh