📄 mkrelease.sh
字号:
#!/bin/sh# This file goes through all the necessary steps to build a release package.# syntax:# mkrelease.sh [clean]## You can specify clean to do a make clean before building. Make clean# will also run configure and generate the required Makefile.## This will build an smbd.noquota, smbd.profile, nmbd.profile and the# entire package with quota support and acl support.doclean=""SGI_ABI=-n32ISA=-mips3CC=ccif [ ! -f ../../source/Makefile ]; then doclean="clean"fiif [ "$1" = "clean" ] || [ "$1" = "cleanonly" ]; then doclean=$1 shiftfiexport SGI_ABI ISA CCif [ "$doclean" = "clean" ] || [ "$doclean" = "cleanonly" ]; then cd ../../source if [ -f Makefile ]; then make distclean fi rm -rf bin/*.profile bin/*.noquota cd ../packaging/SGI rm -rf bins catman html codepages swat samba.idb samba.spec if [ "$doclean" = "cleanonly" ]; then exit 0 ; fifi# create the catman versions of the manual pages#if [ "$doclean" = "clean" ]; then echo Making manual pages ./mkman errstat=$? if [ $errstat -ne 0 ]; then echo "Error $errstat making manual pages\n"; exit $errstat; fificd ../../sourceif [ "$doclean" = "clean" ]; then echo Create SGI specific Makefile ./configure --prefix=/usr/samba --sbindir=/usr/samba/bin --mandir=/usr/share/catman --with-acl-support --with-quotas --with-smbwrapper errstat=$? if [ $errstat -ne 0 ]; then echo "Error $errstat creating Makefile\n"; exit $errstat; fifi# build the sources#echo Making binariesecho "===================== Making Profile versions ======================="make cleanmake headersmake -P "CFLAGS=-O -g3 -woff 1188 -D WITH_PROFILE" bin/smbd bin/nmbderrstat=$?if [ $errstat -ne 0 ]; then echo "Error $errstat building profile sources\n"; exit $errstat;fimv bin/smbd bin/smbd.profilemv bin/nmbd bin/nmbd.profileecho "===================== Making No Quota versions ======================="make cleanmake headersmake -P "CFLAGS=-O -g3 -woff 1188 -D QUOTAOBJS=smbd/noquotas.o" bin/smbderrstat=$?if [ $errstat -ne 0 ]; then echo "Error $errstat building noquota sources\n"; exit $errstat;fimv bin/smbd bin/smbd.noquotaecho "===================== Making Regular versions ======================="make -P "CFLAGS=-O -g3 -woff 1188" all libsmbclienterrstat=$?if [ $errstat -ne 0 ]; then echo "Error $errstat building sources\n"; exit $errstat;ficd ../packaging/SGI# generate the packages#echo Generating Inst Packages./spec.pl # create the samba.spec fileerrstat=$?if [ $errstat -ne 0 ]; then echo "Error $errstat creating samba.spec\n"; exit $errstat;fi./idb.pl # create the samba.idb fileerrstat=$?if [ $errstat -ne 0 ]; then echo "Error $errstat creating samba.idb\n"; exit $errstat;fisort +4 samba.idb > xxxmv xxx samba.idbif [ ! -d bins ]; then mkdir binsfi# do the packaging/usr/sbin/gendist -rbase / -sbase ../.. -idb samba.idb -spec samba.spec -dist ./bins -all
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -