fix a few bugs
This commit is contained in:
parent
a19d95a38c
commit
9e1cbf9e52
2
mkrss.sh
2
mkrss.sh
|
@ -37,7 +37,7 @@ findtitle(){ < $1 hxselect -c $titleaccessor }
|
|||
getcontent(){
|
||||
< $1 hxselect $contentaccessor | \
|
||||
perl -pe 'use URI; $base="'$2'"; s# (href|src)="((?!https?://)[^"]*)"#" ".$1."=\"".URI->new_abs($2,$base)->as_string."\""#eig' }
|
||||
findkeywords(){ < $1 hxselect -c $keywordsaccessor | sed 's/,//g' }
|
||||
findkeywords(){ < $1 hxselect -c $keywordsaccessor | sed 's/,/ /g' }
|
||||
mkcategories(){
|
||||
for keyword in $*; do
|
||||
printf "\\n<category>%s</category>" $keyword
|
||||
|
|
|
@ -15,7 +15,7 @@ retrieve_classes_in_css () {
|
|||
classes=( $( {retrieve_classes_in_html; retrieve_classes_in_css}| \
|
||||
egrep "^CLASS: [^ ]*$" |\
|
||||
sort -u | \
|
||||
awk 'length($2)>2 && $2 !~ /(web-file-size|example|src)/ {print length($2),$2}'|\
|
||||
awk 'length($2)>2 && $2 !~ /(web-file-size|article-date|example|src)/ {print length($2),$2}'|\
|
||||
sort -rn | \
|
||||
awk '{print $2}') )
|
||||
|
||||
|
|
|
@ -4,9 +4,9 @@ echo "Optim HTML size"
|
|||
./optim-html.sh
|
||||
echo "Gen themes clones"
|
||||
./dup-for-themes.sh
|
||||
echo "Building RSS"
|
||||
./mkrss.sh
|
||||
echo "Optim Classes accross CSS/HTML"
|
||||
./optim-classes.sh
|
||||
echo "Update file size"
|
||||
./update-file-size.sh
|
||||
echo "Building RSS"
|
||||
./mkrss.sh
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
#+date: [2019-12-15 Sun]
|
||||
#+author: Yann Esposito
|
||||
#+EMAIL: yann@esposito.host
|
||||
#+keywords: Haskell, programming, functional, tutorial |
|
||||
#+keywords: Haskell, programming, functional, tutorial
|
||||
#+DESCRIPTION: A very dense introduction and Haskell tutorial. Brace yourself.
|
||||
#+OPTIONS: auto-id:t toc:t
|
||||
#+STARTUP: overview
|
||||
|
|
Loading…
Reference in a new issue