File: config2elf

package info (click to toggle)
wine 10.0~repack-12
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 326,476 kB
  • sloc: ansic: 4,155,993; perl: 23,800; yacc: 22,031; javascript: 15,872; makefile: 12,346; pascal: 9,519; objc: 6,923; lex: 5,273; xml: 3,219; python: 2,688; cpp: 1,741; sh: 871; java: 750; asm: 299; cs: 62
file content (15 lines) | stat: -rwxr-xr-x 342 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh -e

if [ "$#" -eq "0" ]; then
  echo "usage: $0 ELF [PATTERN...]"
  exit 1
fi
output=$1
shift

sonames=$(grep "^\#define SONAME_" include/config.h | cut -d\" -f2)
if [ "$#" -eq "0" ]; then
  ./debian/scripts/sonames2elf $(echo "$sonames") > $output
else
  ./debian/scripts/sonames2elf $(echo "$sonames" | grep -E "$@") > $output
fi