Lines Matching refs:destprog
21 # install-reloc library_path_var library_path_value prefix compile_command srcdir config_h_dir exeext install_command... destprog
33 # - install-command is the install command line, excluding the final destprog
34 # - destprog is the destination program name
35 # install-reloc renames destprog to destprog.bin and installs a relocating
36 # wrapper in the place of destprog.
73 echo "Usage: $0 library_path_var library_path_value prefix compile_command srcdir builddir config_h_dir exeext install_command... destprog" 1>&2
78 # Get destprog, last argument.
79 destprog=
82 destprog=$arg
87 destprog=`echo "$destprog" | sed -e "$sedexpr"`
121 installdir=`echo "$destprog" | sed -e 's,/[^/]*$,,'`
122 func_verbose $compile_command -I"$builddir" -I"$srcdir" -I"$config_h_dir" -DHAVE_CONFIG_H -DNO_XMALLOC -D"INSTALLPREFIX=\"$prefix\"" -D"INSTALLDIR=\"$installdir\"" -D"LIBPATHVAR=\"$library_path_var\"" -D"LIBDIRS=$libdirs" -D"EXEEXT=\"$exeext\"" "$srcdir"/relocwrapper.c "$srcdir"/progname.c "$srcdir"/progreloc.c "$srcdir"/xreadlink.c "$srcdir"/readlink.c "$srcdir"/canonicalize.c "$srcdir"/allocsa.c "$srcdir"/relocatable.c "$srcdir"/setenv.c "$srcdir"/strerror.c -o "$destprog.wrapper$exeext" || exit $?
124 # Rename $destprog.wrapper -> $destprog -> $destprog.bin.
125 ln -f "$destprog$exeext" "$destprog.bin$exeext" \
126 || { rm -f "$destprog.bin$exeext" && cp -p "$destprog$exeext" "$destprog.bin$exeext"; } \
128 mv "$destprog.wrapper$exeext" "$destprog$exeext" || exit 1