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

📄 makedist.sh

📁 开源的nasm编译器源码,研究编译器原理很有帮且
💻 SH
字号:
#!/bin/sh# * THIS SCRIPT IS OBSOLETE DO NOT USE * MAJORVER=`grep NASM_MAJOR_VER nasm.h | head -1 | cut -f3 -d' '`MINORVER=`grep NASM_MINOR_VER nasm.h | head -1 | cut -f3 -d' '`VERSION=`grep NASM_VER nasm.h | head -1 | cut -f3 -d' ' | sed s/\"//g`DOSVERSION="${MAJORVER}${MINORVER}"NASM_TAR_GZ=dist/nasm-${VERSION}.tar.gzNASM_ZIP=dist/nasm${DOSVERSION}s.zipNASM_DOS_ZIP=dist/nasm${DOSVERSION}.zipNASM_DOC_ZIP=dist/nasm${DOSVERSION}d.zipif [ -d dist ]; then rm -rf dist; fiif [ -d nasm-${VERSION} ]; then rm -rf nasm-${VERSION}; fiif [ ! -d dist ]; then mkdir dist; fiif [ -f dist/nasm.tar.gz ]; then rm dist/nasm.tar.gz; fimkdir nasm-${VERSION}(cd nasm-${VERSION}; ln -s ../* .; rm -f nasm-${VERSION} dist Checklist GNUmakefile)find nasm-${VERSION}/ -follow -name GNUmakefile > tar-excludefind nasm-${VERSION}/ -follow -name RCS >> tar-excludefind nasm-${VERSION}/ -follow -name '*.exe' >> tar-excludefind nasm-${VERSION}/ -follow -name '*.uu' >> tar-excludefind nasm-${VERSION}/ -follow -name '*,v' >> tar-excludefor i in nasm-${VERSION}/doc/{nasmdoc.hpj,nasmdoc.rtf,nasmdoc.texi,Readme};  do echo $i; done >> tar-excludetar chvfX dist/nasm-${VERSION}.tar tar-exclude nasm-${VERSION}rm -f tar-excludetar tf dist/nasm-${VERSION}.tar | (echo nasm.doc; sed \  -e 's:^nasm-[^/]*/::' \  -e 's:/$::' \  -e '/install-sh/d' \  -e '/makedist\.sh/d' \  -e '/exasm\.zip/d' \  -e '/config/d' \  -e '/doc\/.*\.html/d' \  -e '/doc\/Readme/d' \  -e '/doc\/nasmdoc\.ps/d' \  -e '/doc\/nasmdoc\.txt/d' \  -e '/doc\/nasmdoc\.rtf/d' \  -e '/doc\/nasmdoc\.hpj/d' \  -e '/doc\/nasmdoc\.texi/d' \  -e '/doc\/nasmdoc\.hlp/d' \  -e '/doc\/nasm\.info/d' \  ) | sort > zipfilessed \  -e '/^[^\/]*\.\(c\|h\|pl\|bas\|dat\)$/d' \  -e '/^doc\(\/.*\)\?/d' \  -e '/standard\.mac/d' \  -e '/Makefile/d' \  -e '/rdoff/d' \  < zipfiles > zipfiles.dosgzip -9 dist/nasm-${VERSION}.tarrm -rf nasm-${VERSION}ln -s doc/nasmdoc.src nasm.doczip -l -k ${NASM_ZIP} `cat zipfiles`zip -k ${NASM_ZIP} *.exe misc/exasm.zipzip -l -k ${NASM_DOS_ZIP} `cat zipfiles.dos`zip -k ${NASM_DOS_ZIP} *.exe misc/exasm.ziprm -f nasm.doc(cd doc; zip -l -k ../${NASM_DOC_ZIP} \  Readme \  nasmdoc.src rdsrc.pl \  nasmdoc.txt \  nasmdoc.ps \  *.html zip -k ../${NASM_DOC_ZIP} \  nasmdoc.hlp \  nasm.info)rm -f zipfiles zipfiles.dosecho Distributions complete.

⌨️ 快捷键说明

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