Cross Reference: docbook-dtds-uninstall.sh
xref
: /
solaris-userland
/
components
/
docbook
/
dtds
/
files
/
docbook-dtds-uninstall.sh
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
7042
N/A
#!/
bin
/
bash
7042
N/A
7042
N/A
#
7042
N/A
#
docbook-dtds.spec
%postun
7042
N/A
#
7042
N/A
7042
N/A
export
version
=
1.0
7042
N/A
export
release
=
51
7042
N/A
export
version_list
=
"{3,4}.{0,1}-sgml 4.1.2-xml 4.{2,3,4,5}-{sgml,xml}"
7042
N/A
7042
N/A
catcmd
=
'/
usr
/
bin
/
xmlcatalog
--noout'
7042
N/A
xmlcatalog
=/
usr
/
share
/
sgml
/
docbook
/
xmlcatalog
7042
N/A
entities
=
"
7042
N/A
ent
/
iso-pub.ent
7042
N/A
ent
/
iso-grk1.ent
7042
N/A
dbpoolx.mod
7042
N/A
ent
/
iso-box.ent
7042
N/A
docbookx.dtd
7042
N/A
ent
/
iso-grk3.ent
7042
N/A
ent
/
iso-amsn.ent
7042
N/A
ent
/
iso-num.ent
7042
N/A
dbcentx.mod
7042
N/A
ent
/
iso-grk4.ent
7042
N/A
dbnotnx.mod
7042
N/A
ent
/
iso-dia.ent
7042
N/A
ent
/
iso-grk2.ent
7042
N/A
dbgenent.mod
7042
N/A
dbhierx.mod
7042
N/A
ent
/
iso-amsa.ent
7042
N/A
ent
/
iso-amso.ent
7042
N/A
ent
/
iso-cyr1.ent
7042
N/A
ent
/
iso-tech.ent
7042
N/A
ent
/
iso-amsc.ent
7042
N/A
soextblx.dtd
7042
N/A
calstblx.dtd
7042
N/A
ent
/
iso-lat1.ent
7042
N/A
ent
/
iso-amsb.ent
7042
N/A
ent
/
iso-lat2.ent
7042
N/A
ent
/
iso-amsr.ent
7042
N/A
ent
/
iso-cyr2.ent
7042
N/A
"
7042
N/A
eval
set
${
version_list
}
7042
N/A
for
dir
7042
N/A
do
7042
N/A
fmt
=${
dir
#*-} ver=${dir%%-*} vvr=$ver-${version}-${release}
7042
N/A
sgmldir
=/
usr
/
share
/
sgml
/
docbook
/
$fmt
-
dtd
-
$vvr
7042
N/A
## SGML catalog
7042
N/A
# Update the centralized catalog corresponding to this version of the DTD
7042
N/A
$catcmd
--
sgml
--
del
/
etc
/
sgml
/
catalog
/
etc
/
sgml
/
$fmt
-
docbook
-
$vvr
.
cat
7042
N/A
rm
-f /
etc
/
sgml
/
$fmt
-
docbook
-
$vvr
.
cat
7042
N/A
## XML catalog
7042
N/A
if
[
$fmt
=
xml
-a -w
$xmlcatalog
];
then
7042
N/A
for
f
in
$entities
;
do
7042
N/A
case
$ver
in
4
.[
45
]) f=${f/-/} ;;
esac
7042
N/A
$catcmd
--
del
$sgmldir
/$f
$xmlcatalog
7042
N/A
done
7042
N/A
$catcmd
--
del
$sgmldir
$xmlcatalog
7042
N/A
fi
7042
N/A
done
7042
N/A
7042
N/A
# See the comment attached to this command in the %%post scriptlet.
7042
N/A
/
usr
/
gnu
/
bin
/
sed
-
ni
'
7042
N/A
/xml-docbook/ H
7042
N/A
/xml-docbook/ !p
7042
N/A
$ {
7042
N/A
g
7042
N/A
s/^\n//p
7042
N/A
}
7042
N/A
'
/
etc
/
sgml
/
catalog