File: dbg_symbols.sh

package info (click to toggle)
springlobby 0.267%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 13,780 kB
  • sloc: cpp: 79,169; ansic: 61,599; python: 927; sh: 735; perl: 238; xml: 52; makefile: 42; sed: 16
file content (17 lines) | stat: -rwxr-xr-x 418 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

REV=${1}
STRIP=/opt/mingw32/usr/bin/i686-pc-mingw32-strip 
OBJCOPY=/opt/mingw32/usr/bin/i686-pc-mingw32-objcopy

PREF=build-msw-default
ROOT=""
for binary in springlobby_updater.exe springsettings.exe springlobby.exe ; do
	DBG=${binary}.dbg
	DBGZ=${binary}.dbg.7z
	BIN=${PREF}/${binary}
	${OBJCOPY} ${BIN} --only-keep-debug ${DBG}
	${OBJCOPY} ${BIN} --add-gnu-debuglink=${DBG}
	7za a ${DBGZ} ${DBG}
done