File: lib

package info (click to toggle)
dx 1%3A4.4.4-19
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 56,128 kB
  • sloc: ansic: 365,481; cpp: 156,584; sh: 10,872; java: 10,641; makefile: 2,294; javascript: 837; awk: 444; yacc: 327
file content (16 lines) | stat: -rwxr-xr-x 405 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
# Because Microsofts lib.exe doesn't append when /OUT is used
# we have to use this shell script to make a new version of lib
# that drops the /OUT when appending object files to the archive.

if test $# -lt 2 ; then
	echo "lib /OUT:libname objects"
	exit
fi
libname=`echo $1 | sed -e 's?/[Oo][Uu][Tt]:??'`
shift
if test -r $libname ; then
	lib.exe $libname $*
else
	lib.exe /OUT:$libname $*
fi