📄 build
字号:
#!/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 build a PKG package file# $Id: build,v 1.75 2002/01/08 20:21:18 graeme Exp $version=1.4.8libversion=1.4# Build the mpatrol library.cd ../../build/unixmake clobbermake libmpatrol.a libmpatrol.so.$libversionmake libmpatrolmt.a libmpatrolmt.so.$libversionmake libmpalloc.a libmpalloc.so.$libversionmake libmptools.amake lintmake mpatrol mprof mptrace mleak GUISUP=truestrip mpatrolstrip mprofstrip mptracestrip mleakcd ../../pkg/pkg# Create the installation directory structure and copy the necessary# files into it. This assumes that the Texinfo manual, reference card# and manual pages have already been processed into the different# documentation formats.rm -rf bin doc include info lib man sharemkdir -p bincp ../../build/unix/mpatrol bincp ../../build/unix/mprof bincp ../../build/unix/mptrace bincp ../../build/unix/mleak bincp ../../bin/mpsym bincp ../../bin/mpedit bincp ../../bin/hexwords binmkdir -p doc/mpatrol/imagescp ../../README doc/mpatrolcp ../../doc/README doc/mpatrol/README.DOCcp ../../man/README doc/mpatrol/README.MANcp ../../AUTHORS doc/mpatrolcp ../../THANKS doc/mpatrolcp ../../COPYING doc/mpatrolcp ../../COPYING.LIB doc/mpatrolcp ../../NEWS doc/mpatrolcp ../../ChangeLog doc/mpatrolcp ../../doc/mpatrol.txt doc/mpatrolcp ../../doc/mpatrol.guide doc/mpatrolcp ../../doc/mpatrol.html doc/mpatrolcp ../../doc/mpatrol.dvi doc/mpatrolcp ../../doc/mpatrol.ps doc/mpatrolcp ../../doc/mpatrol.pdf doc/mpatrolcp ../../doc/refcard.dvi doc/mpatrolcp ../../doc/refcard.ps doc/mpatrolcp ../../doc/refcard.pdf doc/mpatrolcp ../../doc/images/*.txt doc/mpatrol/imagescp ../../doc/images/*.jpg doc/mpatrol/imagescp ../../doc/images/*.eps doc/mpatrol/imagescp ../../doc/images/*.pdf doc/mpatrol/imagesmkdir -p doc/mpatrol/htmlcp ../../man/html/*.html doc/mpatrol/htmlmkdir -p doc/mpatrol/dvicp ../../man/dvi/*.dvi doc/mpatrol/dvimkdir -p doc/mpatrol/pscp ../../man/ps/*.ps doc/mpatrol/psmkdir -p doc/mpatrol/pdfcp ../../man/pdf/*.pdf doc/mpatrol/pdfmkdir -p doc/mpatrol/tests/passcp ../../tests/pass/test*.c doc/mpatrol/tests/passmkdir -p doc/mpatrol/tests/failcp ../../tests/fail/test*.c doc/mpatrol/tests/failmkdir -p doc/mpatrol/tests/profilecp ../../tests/profile/test*.c doc/mpatrol/tests/profilemkdir -p doc/mpatrol/tests/tutorialcp ../../tests/tutorial/test*.c doc/mpatrol/tests/tutorialmkdir -p includecp ../../src/mpatrol.h includecp ../../src/mpalloc.h includecp ../../src/mpdebug.h includemkdir -p include/mpatrolcp ../../tools/*.h include/mpatrolmkdir -p infocp ../../doc/mpatrol.info infomkdir -p libcp ../../build/unix/libmpatrol.a libcp ../../build/unix/libmpatrol.so.$libversion libcp ../../build/unix/libmpatrolmt.a libcp ../../build/unix/libmpatrolmt.so.$libversion libcp ../../build/unix/llib-lmpatrol.ln libcp ../../build/unix/llib-lmpatrolmt.ln libcp ../../build/unix/libmpalloc.a libcp ../../build/unix/libmpalloc.so.$libversion libcp ../../build/unix/llib-lmpalloc.ln libcp ../../build/unix/libmptools.a libcp ../../build/unix/llib-lmptools.ln libmkdir -p man/man1cp ../../man/man1/*.1 man/man1mkdir -p man/man3cp ../../man/man3/*.3 man/man3mkdir -p share/aclocalcp ../../extra/mpatrol.m4 share/aclocal# Create the package within a package directory structure.rm -rf GSRmptrlpkgmk -d`pwd` -r`pwd` GSRmptrlrm -rf bin doc include info lib man share# Convert the package directory structure to a package file.rm -f mpatrol-$version.pkgpkgtrans -s `pwd` mpatrol-$version.pkg GSRmptrlrm -rf GSRmptrl# Clean up the build directory.cd ../../build/unixmake clobbercd ../../pkg/pkg
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -