forked from cockpit-project/cockpit
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tools: Properly munge the patternfly font paths
The OpenSans fonts are in our static directory and used on the login page. These are not part of a package. In addition we don't ship any other font formats but woff. The patternfly.sed script munges patternfly for our use cases, however it wasn't working with the new patternfly. Update the script and add tests. Closes cockpit-project#7823
- Loading branch information
1 parent
af2e934
commit 75774b3
Showing
2 changed files
with
16 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
s/src: url(.*eot[^']*');$// | ||
s/src: url(.*eot[^'"]*['"]);$// | ||
s/src: url.*glyphicons-halflings-regular.woff.*/src: url('fonts\/glyphicons.woff') format('woff');/ | ||
s/src: url.*fontawesome-webfont.woff.*/src: url('fonts\/fontawesome.woff?v=4.2.0') format('woff');/ | ||
s/src: url.*PatternFlyIcons-webfont.woff.*/src: url('fonts\/patternfly.woff') format('woff');/ | ||
s/src: url.*OpenSans-\([^']*\).woff.*/src: url('..\/..\/static\/fonts\/OpenSans-\1.woff') format('woff');/ | ||
s/src:.*url.*OpenSans-\([^'"]*\).woff.*/src: url('..\/..\/static\/fonts\/OpenSans-\1.woff') format('woff');/ | ||
s/url('..\/img\//url('images\// | ||
s/url("..\/img\//url("images\// | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters