Skip to content

Commit

Permalink
Merge pull request #98 from DataverseNO/86-bug-in-localinstall.sh-lea…
Browse files Browse the repository at this point in the history
…ds-to-css-files-note-found

86 bug in localinstall.sh leads to css files note found
  • Loading branch information
qqmyers authored Feb 18, 2025
2 parents 73b5778 + 1f56241 commit 6c3e560
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions localinstall.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,15 @@ sed -n 's/.*<link.*href="\(http[^"]*\)".*/\1/p' *.html | sort -u > 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
Expand All @@ -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
Expand All @@ -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

Expand Down

0 comments on commit 6c3e560

Please sign in to comment.