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