Commit 47013427 authored by mara's avatar mara

added check patch and build kde packages of main script

parent 9c3ae872
......@@ -80,7 +80,7 @@ patching_files() {
pf=$(basename "$pf")
[[ -z "$pf" ]] && continue
pushd ${_WORK_DIR} 2>&1>/dev/null
patch -p1 --verbose < "../${pf}.patch" || return 1
[[ ! $(patch -p1 --batch --dry-run -N -i ../${pf}.patch | grep previously) ]] && ( patch -p1 --verbose -i "../${pf}.patch" || return 1 )
popd 2>&1>/dev/null
count=$(($count+1))
done
......@@ -115,9 +115,15 @@ build() {
# set global environment
environment
# echo "${_PKG}"
[[ ! -d ${_BUILD}/${_PKG} ]] && ( mkdir -p ${_BUILD}/${_PKG} || return 1 )
t=$(echo ${_PKG} | cut -d '/' -f1)
p=$(echo ${_PKG} | cut -d '/' -f2)
if [[ $t == kde && -e ${_BUILD}/$t/.rules ]]; then
source ${_BUILD}/$t/.rules
continue
fi
[[ ! -d ${_BUILD}/${_PKG} ]] && ( mkdir -p ${_BUILD}/${_PKG} || return 1 )
# if [[ ! $(ls ${_INSTALL}/$t/ | grep "$p-") ]];then
# removepkg $p
[[ -e ${_BUILD}/${_PKG}/.ignore ]] && continue
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment