pristine_setup.sh

来自「手机嵌入式Linux下可用的busybox源码」· Shell 代码 · 共 42 行

SH
42
字号
#!/bin/sh## To compile BusyBox without touching the original sources# (as might be interesting for multi-target builds), create # an empty directory, cd into it, and run this program by# giving its explicit path (kind of like how you would run# configure, if BusyBox had one).  Then you should be ready# to "make".  Files in the build tree, in particular Config.h,# will override those in the pristine source tree.## If you use a ? in your path name, you lose, see sed command below.export LC_ALL=POSIXexport LC_CTYPE=POSIXDIR=${0%%/pristine_setup.sh}if [ ! -d $DIR ]; then  echo "unexpected problem: $DIR is not a directory.  Aborting pristine setup"  exitfiecho " "if [ -e ./Config.h ]; then    echo "./Config.h already exists: not overwriting"    exitfiif [ -e ./Makefile ]; then    echo "./Makefile already exists: not overwriting"fised -e "s?BB_SRC_DIR =.*?BB_SRC_DIR = $DIR?" <$DIR/Makefile >Makefile || exitcp $DIR/Config.h Config.h || exit#mkdir -p pwd_grpecho " "echo "You may now type 'make' to build busybox in this directory"echo "($PWD) using the pristine sources in $DIR"echo " "

⌨️ 快捷键说明

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