File: fix-xref.sh

package info (click to toggle)
libmodulemd 2.15.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,592 kB
  • sloc: ansic: 38,286; python: 3,263; xml: 1,739; sh: 389; makefile: 42
file content (15 lines) | stat: -rwxr-xr-x 436 bytes parent folder | download | duplicates (5)
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