File: split-debug.sh.in

package info (click to toggle)
litecoin 0.17.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 23,076 kB
  • sloc: cpp: 120,253; python: 22,203; ansic: 14,322; sh: 4,390; makefile: 1,509; asm: 730; java: 438
file content (10 lines) | stat: -rw-r--r-- 353 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

if [ $# -ne 3 ];
    then echo "usage: $0 <input> <stripped-binary> <debug-binary>"
fi

@OBJCOPY@ --enable-deterministic-archives -p --only-keep-debug $1 $3
@OBJCOPY@ --enable-deterministic-archives -p --strip-debug $1 $2
@STRIP@ --enable-deterministic-archives -p -s $2
@OBJCOPY@ --enable-deterministic-archives -p --add-gnu-debuglink=$3 $2