forked from artix/artools
Compare commits
7 Commits
Author | SHA1 | Date | |
---|---|---|---|
02edf46d6a | |||
860d2272ba | |||
0d9e54c4e3 | |||
26bd425d55 | |||
c08f82044c | |||
74af21ca25 | |||
e3b8439b04 |
@@ -28,9 +28,9 @@ batch_move() {
|
|||||||
src=${src#*:}
|
src=${src#*:}
|
||||||
local dest=${entry%%:*}
|
local dest=${entry%%:*}
|
||||||
if ${runlist}; then
|
if ${runlist}; then
|
||||||
"${dest}"pkg -s "${src}" -u -p "${pkg}"
|
"${dest}"pkg -s "${src}" -p "${pkg}"
|
||||||
else
|
else
|
||||||
msg "%s" "${dest}pkg -s ${src} -u -p ${pkg}"
|
msg "%s" "${dest}pkg -s ${src} -p ${pkg}"
|
||||||
fi
|
fi
|
||||||
done < "$pkglist"
|
done < "$pkglist"
|
||||||
}
|
}
|
||||||
|
@@ -40,7 +40,11 @@ pkgrepo_new(){
|
|||||||
|
|
||||||
prepare_dir "${TREE_DIR_ARTIX}/${group}/${package}/trunk"
|
prepare_dir "${TREE_DIR_ARTIX}/${group}/${package}/trunk"
|
||||||
|
|
||||||
commit_jenkins_files "${package}"
|
commit_ci "${package}"
|
||||||
|
|
||||||
|
# if braid push "${package}"; then
|
||||||
|
# braid update "${package}"
|
||||||
|
# fi
|
||||||
else
|
else
|
||||||
die "Package %s already exists!" "${package}"
|
die "Package %s already exists!" "${package}"
|
||||||
fi
|
fi
|
||||||
@@ -106,11 +110,20 @@ update_tree() {
|
|||||||
|
|
||||||
#{{{ patch
|
#{{{ patch
|
||||||
|
|
||||||
|
set_maintainer() {
|
||||||
|
local name email path="$1"
|
||||||
|
name=$(git config --get user.name)
|
||||||
|
email=$(git config --get user.email)
|
||||||
|
sed -e "1s|Maintainer:.*|Maintainer: $name <$email>|" \
|
||||||
|
-i "$path"/PKGBUILD
|
||||||
|
}
|
||||||
|
|
||||||
patch_pkg(){
|
patch_pkg(){
|
||||||
local pkgpath="$1"
|
local pkgpath="$1"
|
||||||
local pkg=${pkgpath%/*}
|
local pkg=${pkgpath%/*}
|
||||||
pkg=${pkg##*/}
|
pkg=${pkg##*/}
|
||||||
sed -e 's|arch-meson|artix-meson|' -i "$pkgpath"/PKGBUILD
|
sed -e 's|arch-meson|artix-meson|' -i "$pkgpath"/PKGBUILD
|
||||||
|
set_maintainer "$pkgpath"
|
||||||
case $pkg in
|
case $pkg in
|
||||||
glibc)
|
glibc)
|
||||||
msg2 "Patching %s" "$pkg"
|
msg2 "Patching %s" "$pkg"
|
||||||
|
@@ -133,15 +133,15 @@ run(){
|
|||||||
msg "Checking (%s) (Artix)" "${tree##*/}"
|
msg "Checking (%s) (Artix)" "${tree##*/}"
|
||||||
pull_tree "${tree##*/}" "$head"
|
pull_tree "${tree##*/}" "$head"
|
||||||
|
|
||||||
braid push "${package}"
|
if braid push "${package}"; then
|
||||||
braid update "${package}"
|
braid update "${package}"
|
||||||
|
msg "Update (%s)" "${tree##*/}"
|
||||||
msg "Update (%s)" "${group##*/}"
|
git push origin master
|
||||||
git push origin master
|
git prune
|
||||||
|
[[ "${cmd}" != 'commitpkg' ]] && check_team
|
||||||
git prune
|
else
|
||||||
|
warning "'braid push %s' failed.\n" "${package}"
|
||||||
[[ "${cmd}" != 'commitpkg' ]] && check_team
|
fi
|
||||||
else
|
else
|
||||||
die "Package '%s' does not exist!" "${package}"
|
die "Package '%s' does not exist!" "${package}"
|
||||||
fi
|
fi
|
||||||
|
@@ -31,7 +31,7 @@ write_agentyaml(){
|
|||||||
git add "$agent"
|
git add "$agent"
|
||||||
}
|
}
|
||||||
|
|
||||||
commit_jenkins_files(){
|
commit_ci(){
|
||||||
local pkg="$1"
|
local pkg="$1"
|
||||||
|
|
||||||
write_jenkinsfile "$pkg"
|
write_jenkinsfile "$pkg"
|
||||||
|
Reference in New Issue
Block a user