File: verif_dep.sh

package info (click to toggle)
logidee-tools 1.2.18
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 656 kB
  • sloc: xml: 1,433; sh: 81; perl: 61; makefile: 42
file content (16 lines) | stat: -rwxr-xr-x 368 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
# V�rifie les d�pendances d'un fichier XML en parcourant les balises
# xi:include

#set -x

function verif() { 
  while [ $# -ne 0 ];
  do
  echo $1
  verif $(sed -e '/<code>/,/<\/code>/ s/.*//' -e 's/.*<\/code>//' -e '/<cmd>/,/<\/cmd>/ s/.*//' -e 's/.*<\/cmd>//' $1 | grep '<xi:include' | sed -e 's/.*href="\([^"]*\)".*/\1/' )
  shift
  done
}

verif  $1