Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

86 bug in localinstall.sh leads to css files note found #98

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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