File: config2elf

package info (click to toggle)
wine 8.0~repack-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 349,064 kB
  • sloc: ansic: 3,840,948; perl: 22,322; yacc: 18,640; javascript: 13,193; makefile: 11,359; objc: 6,780; lex: 5,004; python: 2,581; cpp: 1,690; xml: 1,332; sh: 868; java: 750; cs: 49
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