File: fix-xref.sh

package info (click to toggle)
libmodulemd 2.14.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,472 kB
  • sloc: ansic: 37,029; python: 3,234; sh: 379; xml: 171; makefile: 10
file content (15 lines) | stat: -rwxr-xr-x 436 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

devdocs_url="https://developer.gnome.org"

dir=`pwd`

for file in $dir/*.html; do
  echo "Fixing cross-references in ${file}..."
  sed -i \
        -e "s|/usr/share/gtk-doc/html/gobject|${devdocs_url}/gobject/stable|" \
        -e "s|/usr/share/gtk-doc/html/glib|${devdocs_url}/glib/stable|" \
        -e "s|\.\./glib|${devdocs_url}/glib/stable|" \
        -e "s|\.\./gobject|${devdocs_url}/gobject/stable|" \
  ${file}
done