mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-31 05:16:12 +08:00
修改拷贝依赖
This commit is contained in:
parent
2bcef0ba75
commit
9572582401
|
@ -12,6 +12,7 @@ dir_log=$dir_root/log
|
||||||
dir_db=$dir_root/db
|
dir_db=$dir_root/db
|
||||||
dir_list_tmp=$dir_log/.tmp
|
dir_list_tmp=$dir_log/.tmp
|
||||||
dir_code=$dir_log/code
|
dir_code=$dir_log/code
|
||||||
|
dir_dep=$dir_log/deps
|
||||||
dir_update_log=$dir_log/update
|
dir_update_log=$dir_log/update
|
||||||
ql_static_repo=$dir_repo/static
|
ql_static_repo=$dir_repo/static
|
||||||
|
|
||||||
|
@ -154,6 +155,7 @@ fix_config() {
|
||||||
make_dir $dir_repo
|
make_dir $dir_repo
|
||||||
make_dir $dir_raw
|
make_dir $dir_raw
|
||||||
make_dir $dir_update_log
|
make_dir $dir_update_log
|
||||||
|
make_dir $dir_dep
|
||||||
|
|
||||||
if [[ ! -s $file_config_user ]]; then
|
if [[ ! -s $file_config_user ]]; then
|
||||||
echo -e "复制一份 $file_config_sample 为 $file_config_user,随后请按注释编辑你的配置文件:$file_config_user\n"
|
echo -e "复制一份 $file_config_sample 为 $file_config_user,随后请按注释编辑你的配置文件:$file_config_user\n"
|
||||||
|
|
|
@ -391,18 +391,11 @@ gen_list_repo() {
|
||||||
if [[ $blackword ]]; then
|
if [[ $blackword ]]; then
|
||||||
files=$(echo "$files" | egrep -v $blackword)
|
files=$(echo "$files" | egrep -v $blackword)
|
||||||
fi
|
fi
|
||||||
if [[ $dependence ]]; then
|
|
||||||
# cd ${dir_scripts}
|
|
||||||
# depInScripts=$(eval $cmd | sed 's/^..//' | egrep -v $uniq_path | egrep $dependence)
|
|
||||||
# for dep in ${depInScripts}; do
|
|
||||||
# file_path=$(dirname $dep)
|
|
||||||
# [[ ! $file_path =~ "/" ]] && file_path=""
|
|
||||||
# make_dir "${dir_scripts}/${uniq_path}/${file_path#*/}"
|
|
||||||
# cp -f $dep "${dir_scripts}/${uniq_path}/${file_path#*/}"
|
|
||||||
# done
|
|
||||||
cp -f $file_notify_js "${dir_scripts}/${uniq_path}"
|
|
||||||
cp -f $file_notify_py "${dir_scripts}/${uniq_path}"
|
|
||||||
|
|
||||||
|
cp -f $file_notify_js "${dir_scripts}/${uniq_path}"
|
||||||
|
cp -f $file_notify_py "${dir_scripts}/${uniq_path}"
|
||||||
|
|
||||||
|
if [[ $dependence ]]; then
|
||||||
cd ${repo_path}
|
cd ${repo_path}
|
||||||
results=$(eval $cmd | sed 's/^..//' | egrep $dependence)
|
results=$(eval $cmd | sed 's/^..//' | egrep $dependence)
|
||||||
for _file in ${results}; do
|
for _file in ${results}; do
|
||||||
|
@ -411,6 +404,11 @@ gen_list_repo() {
|
||||||
cp -f $_file "${dir_scripts}/${uniq_path}/${file_path}"
|
cp -f $_file "${dir_scripts}/${uniq_path}/${file_path}"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ -d $dir_dep ]]; then
|
||||||
|
cp * "${dir_scripts}/${uniq_path}" &>/dev/null
|
||||||
|
fi
|
||||||
|
|
||||||
for file in ${files}; do
|
for file in ${files}; do
|
||||||
filename=$(basename $file)
|
filename=$(basename $file)
|
||||||
cp -f $file "$dir_scripts/${uniq_path}/${filename}"
|
cp -f $file "$dir_scripts/${uniq_path}/${filename}"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user