Ticket #230: brp-strip.os2.diff
File brp-strip.os2.diff, 2.1 KB (added by , 8 years ago) |
---|
-
C:\usr\lib\rpm\brp-strip.os2
old new 3 3 # 4 4 # Strip debug info and compress OS/2 binaries and DLLs using emxomfstrip and lxlite tools. 5 5 # 6 # Usage: brp-strip.os2 [--[no-]compress] [--[no-]debuginfo]6 # Usage: brp-strip.os2 RPM_BUILD_SUBDIR [--[no-]compress] [--[no-]debuginfo] 7 7 # [-n|--names <wildcard1[,wildcard2...]>] 8 8 # [-i|--include <wildcard1[,wildcard2...]>] 9 9 # [-x|--exclude <wildcard1[,wildcard2...]>] 10 10 # 11 # RPM_BUILD_SUBDIR is a directory where the souce code of the package is 12 # unpacked to. A file `debugfiles.list` containing a list of files with debug 13 # info is created in this directory when the script is instructed to generate 14 # debug info (by default). This file is then used by the %debug_package macro to 15 # automatically generate a `debuginfo` sub-package for the given package. 16 # 11 17 # The --no-compress and --no-debuginfo flags completely disable lxlite and emxomfstrip 12 18 # invocation, respectively. The -n flag overrides the default list of files that will be 13 19 # compressed and stripped (see FILENAMES below). The -i flag includes additional files … … 23 29 # %debug_package macro to generate the debug package. 24 30 # 25 31 32 die() 33 { 34 (>&2 echo "$0: ERROR: $1") 35 exit 1 36 } 37 26 38 # If using normal root, avoid changing anything. 27 39 if [ -z "$RPM_BUILD_ROOT" -o "$RPM_BUILD_ROOT" = "/" -o "$RPM_BUILD_ROOT" = "/@unixroot" ]; then 28 40 exit 0 … … 40 52 DEBUGINFO_FILENAMES= 41 53 DEBUGINFO_DFILENAMES_EXCLUDE= 42 54 55 RPM_BUILD_SUBDIR="$1" 56 [ -n "$RPM_BUILD_SUBDIR" ] || die "RPM_BUILD_SUBDIR is not set." 57 shift 58 43 59 dbgext="dbg" 44 dbgfilelist= debugfiles.list60 dbgfilelist="$RPM_BUILD_SUBDIR/debugfiles.list" 45 61 46 62 var="FILENAMES" 47 63 … … 146 162 fi 147 163 148 164 [ -z "$NO_DEBUGINFO" ] && \ 149 find "$RPM_BUILD_ROOT" -type f -name "*.$dbgext" | sed -e "s|^$RPM_BUILD_ROOT||" > " ./$dbgfilelist"165 find "$RPM_BUILD_ROOT" -type f -name "*.$dbgext" | sed -e "s|^$RPM_BUILD_ROOT||" > "$dbgfilelist" 150 166 151 167 exit 0