1 Star 0 Fork 9

realpan/net-snmp

forked from openKylin/net-snmp 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
maketarget 1.09 KB
一键复制 编辑 原始数据 按行查看 历史
LLL 提交于 2022-06-27 15:01 . Import Upstream version 5.8+dfsg
: maketarget
DIRS=`find . -name targets -prune -o -type d ! -name . -print | grep -v CVS | sed s/..//`
TARGET=${1-`./config.guess`}
rebuild=0
echo Target directory: $TARGET
echo Sub directories: $DIRS
[ -d targets ] || mkdir targets
cd targets
if [ -d $TARGET ]
then
/bin/echo Target already exists. Do you want to rebuild it\? '[y]' \\c
read ans
case $ans in
"" | y* | Y* )
rebuild=1
;;
n* | N* )
exit 0
;;
*)
echo Bummer.....
exit 1
;;
esac
fi
echo Creating target directory: $TARGET
[ -d $TARGET ] || mkdir $TARGET
cd $TARGET
for f in . $DIRS
do
echo building $f ...
[ -d $f ] || mkdir $f
case $f in
*/*/*/*)
echo Too deep nesting...
exit 1
;;
*/*/*)
cd $f
for f in ../../../../../$f/* ; do [ -d $f ] || ln -sf $f . ; done
cd ../../..
;;
*/*)
cd $f
for f in ../../../../$f/* ; do [ -d $f ] || ln -sf $f . ; done
cd ../..
;;
.)
for f in ../../$f/* ; do [ -d $f ] || ln -sf $f . ; done
;;
*)
cd $f
for f in ../../../$f/* ; do [ -d $f ] || ln -sf $f . ; done
cd ..
;;
esac
done
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/realpan_bupt/net-snmp.git
git@gitee.com:realpan_bupt/net-snmp.git
realpan_bupt
net-snmp
net-snmp
openkylin/yangtze

搜索帮助