⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 setup

📁 debug source code under unix platform.
💻
字号:
#!/bin/sh# mpatrol# A library for controlling and tracing dynamic memory allocations.# Copyright (C) 1997-2002 Graeme S. Roy <graeme.roy@analog.com>## This library is free software; you can redistribute it and/or# modify it under the terms of the GNU Library General Public# License as published by the Free Software Foundation; either# version 2 of the License, or (at your option) any later version.## This library is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU# Library General Public License for more details.## You should have received a copy of the GNU Library General Public# License along with this library; if not, write to the Free# Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,# MA 02111-1307, USA.# UNIX shell script to construct the directory structure that is required by# GNU autoconf, automake and libtool.# $Id: setup,v 1.14 2002/01/08 20:18:08 graeme Exp $uselinks=0generate=0# Create a new directory if it does not already exist.makedir(){    if [ ! -d "$1" ]    then        mkdir -p "$1"    fi}# Copy a file to the current directory if it does not already exist, possibly# using a symbolic link.copyfile(){    if [ ! -f "$2" ]    then        if [ $uselinks = 1 ]        then            rm -f "$2"            ln -s "$1" "$2"        else            cp -p "$1" "$2"        fi    fi}# Copy the required top-level files.echo "Copying top-level files" >&2files="../../README ../../AUTHORS ../../THANKS ../../COPYING ../../COPYING.LIB       ../../NEWS ../../ChangeLog"for file in $filesdo    copyfile "$file" `basename "$file"`donecopyfile ../../config/acconfig.h acconfig.hcopyfile ../../config/configure.in configure.incopyfile ../../config/top.am Makefile.amif [ $generate = 0 ]then    files="../../config/INSTALL ../../config/install-sh ../../config/missing           ../../config/mkinstalldirs ../../config/config.guess           ../../config/config.sub ../../config/ltconfig ../../config/ltmain.sh           ../../config/aclocal.m4 ../../config/configure"    for file in $files    do        copyfile "$file" `basename "$file"`    done    copyfile ../../config/configure.h.in configure.h.in    copyfile ../../config/top.in Makefile.infi# Create the bin directory for holding the mpatrol shell scripts.echo "Creating bin directory" >&2makedir bincd binfiles="../../../bin/mpsym ../../../bin/mpedit ../../../bin/hexwords"for file in $filesdo    copyfile "$file" `basename "$file"`donecopyfile ../../../config/bin.am Makefile.amif [ $generate = 0 ]then    copyfile ../../../config/bin.in Makefile.inficd ..# Create the doc directory for holding the mpatrol texinfo manual.echo "Creating doc directory" >&2makedir doccd doccopyfile ../../../doc/mpatrol.texi mpatrol.texicopyfile ../../../doc/texinfo.tex texinfo.texcopyfile ../../../config/doc.am Makefile.ammakedir imagescd imagesfor file in ../../../../doc/images/*.epsdo    copyfile "$file" `basename "$file"`donecopyfile ../../../../doc/images/mpatrol.txt mpatrol.txtcopyfile ../../../../config/images.am Makefile.amif [ $generate = 0 ]then    copyfile ../../../../config/images.in Makefile.inficd ..if [ $generate = 0 ]then    copyfile ../../../config/doc.in Makefile.inficd ..# Create the extra directory for holding any additional data files.echo "Creating extra directory" >&2makedir extracd extracopyfile ../../../extra/mpatrol.m4 mpatrol.m4copyfile ../../../config/extra.am Makefile.amif [ $generate = 0 ]then    copyfile ../../../config/extra.in Makefile.inficd ..# Create the man directory for holding the mpatrol manual pages.echo "Creating man directory" >&2makedir mancd manfor file in ../../../man/man1/*.1 ../../../man/man3/*.3do    copyfile "$file" `basename "$file"`donecopyfile ../../../config/man.am Makefile.amif [ $generate = 0 ]then    copyfile ../../../config/man.in Makefile.inficd ..# Create the src directory for building the non-threadsafe libmpatrol and# libmpalloc libraries, as well as the mpatrol utility commands.echo "Creating src directory" >&2makedir srccd srcfor file in ../../../src/*.[ch]do    copyfile "$file" `basename "$file"`donecopyfile ../../../config/src.am Makefile.amif [ $generate = 0 ]then    copyfile ../../../config/src.in Makefile.inficd ..# Create the tsrc directory for building the threadsafe libmpatrolmt library.echo "Creating tsrc directory" >&2makedir tsrccd tsrcfor file in ../../../src/*.[ch]do    copyfile "$file" `basename "$file"`donecopyfile ../../../config/tsrc.am Makefile.amif [ $generate = 0 ]then    copyfile ../../../config/tsrc.in Makefile.inficd ..# Create the tools directory for building the libmptools library.echo "Creating tools directory" >&2makedir toolscd toolsfor file in ../../../tools/*.[ch]do    copyfile "$file" `basename "$file"`donecopyfile ../../../config/tools.am Makefile.amif [ $generate = 0 ]then    copyfile ../../../config/tools.in Makefile.inficd ..# Regenerate the configure script and associated files if this is required.if [ $generate = 1 ]then    echo "Regenerating configuration files" >&2    aclocal    autoheader    automake --add-missing    autoconffi

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -