Changeset 146 for trunk/insertphp.sh
- Timestamp:
- 02/27/12 17:50:53 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/insertphp.sh
r116 r146 18 18 # 19 19 # $ insertphp.sh -i filein -o fileout -s sedfile -d depth 20 #21 20 # 22 21 # DESCRIPTION … … 54 53 # $Id$ 55 54 # 55 # - fplod 20120227 56 # 57 # * xmlstarlet vs xml 58 # 56 59 # - fplod 2008-09-18T08:55:50Z aedon.locean-ipsl.upmc.fr (Darwin) 57 60 # … … 69 72 AIX|IRIX64) 70 73 echo " www : no specific posix checking" 74 xmlcmd=xml 75 ;; 76 Darwin) 77 xmlcmd=xmlstarlet 71 78 ;; 72 79 *) 73 80 set -o posix 81 xmlcmd=xml 74 82 ;; 75 83 esac … … 83 91 # 84 92 # test if xml is available 85 tool= xml93 tool=${xmlcmd} 86 94 type ${tool} 1> /dev/null 2>&1 87 95 status=${?} … … 167 175 # 168 176 # get title from main.xml 169 title=$( xmlsel -N d="http://docbook.org/ns/docbook" -t -m "/d:article/d:title/node()" -c . main.xml)177 title=$(${xmlcmd} sel -N d="http://docbook.org/ns/docbook" -t -m "/d:article/d:title/node()" -c . main.xml) 170 178 # 171 179 dirphp="./"
Note: See TracChangeset
for help on using the changeset viewer.