File: binutils-or1k-elf.links

package info (click to toggle)
binutils-or1k-elf 1.0.13
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 68 kB
  • sloc: makefile: 31; sh: 29
file content (21 lines) | stat: -rwxr-xr-x 725 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
set -C -e -u

gnu_type=$(sed '/^gnu_type *= */ !d; s///; q' debian/rules)

# For each executable in the path, provide a manual page as a symbolic
# link to the one from binutils-common.
mandir=usr/share/man/man1
for executable in ${0%.links}/usr/bin/$gnu_type-*; do
    tool=${executable##*/$gnu_type-}
    echo $mandir/$tool.1.gz $mandir/$gnu_type-$tool.1.gz
done

# Upstream installs hard links to some executables from the
# traditional path for cross-compiler tools.
# Instead of copying them from debian/tmp to the package directory,
# replace them with symbolic links.
for hard_link in debian/tmp/usr/$gnu_type/bin/*; do
    tool=${hard_link##*/}
    echo usr/bin/$gnu_type-$tool usr/$gnu_type/bin/$tool
done