File: fixlt.sh

package info (click to toggle)
libdbi-drivers 0.9.0-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 6,148 kB
  • ctags: 1,900
  • sloc: ansic: 18,980; sh: 10,942; xml: 2,759; makefile: 577
file content (10 lines) | stat: -rwxr-xr-x 745 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

# this is an ugly kludge to fix the libtool script generated by OSX'
# libtool 1.4.x. It is not necessary on any other platform and it
# should become obsolete with libtool 1.5.x

sed 's%archive_cmds=\"\\$nonopt \\$(test \\\\\\"x\\$module\\\\\\" = xyes && echo -bundle || echo -dynamiclib) \\$allow_undefined_flag -o \\$lib \\$libobjs \\$deplibs\\$linker_flags -install_name \\$rpath/\\$soname \\$verstring\"%archive_cmds=\"\\$nonopt \\$(test .\\$module = .yes \&\& echo -bundle \|\| echo -dynamiclib) \\$allow_undefined_flag -o \\$lib \\$libobjs \\$deplibs\\$linker_flags \\$(test .\\$module != .yes \&\& echo -install_name \\$rpath/\\$soname \\$verstring)\"%' < libtool > libtool.new
mv libtool libtool.orig
mv libtool.new libtool