Skip to content

Commit

Permalink
0.20180810
Browse files Browse the repository at this point in the history
fb2xmlfix: fix error xmlstarlet
  • Loading branch information
zvezdochiot committed Aug 10, 2018
1 parent 124cf10 commit 6d38e6c
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 9 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Console FB2 reader
https://github.com/zvezdochiot/bash-fb2

0.20180810

fb2xmlfix: fix error xmlstarlet

0.20180806

fb2encode: fix error iconv
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.20180806
0.20180810
2 changes: 1 addition & 1 deletion scripts/fb2encode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#Depends: dash, grep, sed, tr, iconv

sname="Fb2Encode"
sversion="0.20180806"
sversion="0.20180810"

echo "$sname $sversion" >&2

Expand Down
2 changes: 1 addition & 1 deletion scripts/fb2toinfo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#Depends: dash, sed, file, unzip, zcat

sname="Fb2toinfo"
sversion="0.20180806"
sversion="0.20180810"

echo "$sname $sversion" >&2

Expand Down
2 changes: 1 addition & 1 deletion scripts/fb2totxt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#Depends: dash, sed, file, less, unzip, zcat

sname="Fb2totxt"
sversion="0.20180806"
sversion="0.20180810"

echo "$sname $sversion" >&2

Expand Down
2 changes: 1 addition & 1 deletion scripts/fb2tozip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#Depends: dash, zip, unzip

sname="Fb2toZip"
sversion="0.20180806"
sversion="0.20180810"

echo "$sname $sversion" >&2

Expand Down
14 changes: 10 additions & 4 deletions scripts/fb2xmlfix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#Depends: dash, xmlstarlet

sname="Fb2XMLFix"
sversion="0.20180806"
sversion="0.20180810"

echo "$sname $sversion" >&2

Expand Down Expand Up @@ -56,11 +56,17 @@ if [ -f "$src" ]
then
if [ "x$fquiet" = "xtrue" ]
then
xmlstarlet fo -R -Q "$src" > "$src.verify.xml"
xmlstarlet fo -R -Q "$src" > "verify.$$.xml"
else
xmlstarlet fo -R "$src" > "$src.verify.xml"
xmlstarlet fo -R "$src" > "verify.$$.xml"
fi
if [ -s "verify.$$.xml" ]
then
mv -fv "verify.$$.xml" "$dst"
else
rm -fv "verify.$$.xml"
echo " $src not parse!" >&2
fi
mv -fv "$src.verify.xml" "$dst"
else
echo "$src not fb2 file!" >&2
fi

0 comments on commit 6d38e6c

Please sign in to comment.