added fonts folder stub
updated setup scripts to check for ttf/otf files instead of moving everything
This commit is contained in:
parent
bf3f909ade
commit
94146c193e
|
@ -20,5 +20,6 @@ cp hooks/* .git/hooks/
|
|||
chmod +x .git/hooks/*
|
||||
|
||||
echo "Installing fonts..."
|
||||
cp fonts/* $font_dir
|
||||
cp fonts/*.ttf $font_dir/
|
||||
cp fonts/*.otf $font_dir/
|
||||
fc-cache -v
|
||||
|
|
|
@ -25,5 +25,6 @@ cp hooks/* .git/hooks/
|
|||
chmod +x .git/hooks/*
|
||||
|
||||
echo "Installing fonts..."
|
||||
cp fonts/* $font_dir
|
||||
cp fonts/*.ttf $font_dir/
|
||||
cp fonts/*.otf $font_dir/
|
||||
fc-cache -v
|
||||
|
|
|
@ -21,7 +21,7 @@ New-Item -ItemType SymbolicLink -Path $env:appdata\.emacs -Target $PSScriptRoot\
|
|||
|
||||
echo "Installing fonts..."
|
||||
$fonts = (New-Object -ComObject Shell.Application).Namespace(0x14)
|
||||
foreach ($file in gci $PSScriptRoot\Fonts\*.otf)
|
||||
foreach ($file in gci $PSScriptRoot\fonts\*.otf)
|
||||
{
|
||||
$fileName = $file.Name
|
||||
if (-not(Test-Path -Path "C:\Windows\fonts\$fileName" )) {
|
||||
|
@ -29,4 +29,3 @@ foreach ($file in gci $PSScriptRoot\Fonts\*.otf)
|
|||
dir $file | %{ $fonts.CopyHere($_.fullname) }
|
||||
}
|
||||
}
|
||||
cp *.otf c:\windows\fonts\
|
||||
|
|
Loading…
Reference in New Issue