2 ##############################################################################
3 # unix2nt_ar: Maps UNIX ar command options to
\r
4 # Microsoft Visual C++ 6.0 LIB command line options.
\r
6 # Known bugs: pathnames with spaces may cause quoting problems.
\r
8 # Orion Sky Lawlor, olawlor@acm.org, 1/24/2001
9 ##############################################################################
11 # Configurable option: Location of MSDEV
\r
12 VCC_DIR="C:/Program Files/Microsoft Visual Studio/Vc98"
\r
14 LIB_CMD="$VCC_DIR/BIN/LIB.EXE"
\r
17 if [ "x$LIB" = "x" ]
\r
19 export INCLUDE="$VCC_DIR/include"
\r
20 export LIB="$VCC_DIR/lib"
\r
23 ###################################################################
25 # Utility routines used below
27 ###################################################################
29 # PrintUsage: prints a helpful command-line usage message and quits
30 # Args: any additional messages
32 echo "Usage: unix2nt_ar <output file> <input files>"
34 echo "Version 1.0, Parallel Programming Lab, UIUC, 2001"
39 # End blows away the temporary files (unless SAVE is true) and exits
45 # This procedure prints an error message and exits.
46 # ("1>&2" redirects the echo output to stderr).
47 # Args: written to stderr
49 echo "unix2nt_ar Fatal Error in directory "`pwd` 1>&2
51 echo "unix2nt_ar exiting..." 1>&2
55 ##############################################################################
57 # Parse & convert the arguments
59 ##############################################################################
\r
61 [ $# -lt 2 ] && printUsage "Error: Not enough arguments given."
67 "$LIB_CMD" $LIB_OPTS $args
\r
71 Abort "Error executing" "$LIB_CMD" $LIB_OPTS $args
\r