mirror of
https://gitlab.archlinux.org/archlinux/devtools.git
synced 2025-09-13 01:46:19 +02:00
Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
14ba11dcdf | ||
![]() |
be5505a54a | ||
![]() |
d09d34d77a | ||
![]() |
5815d639f3 |
@@ -13,7 +13,9 @@ if [ ! -f PKGBUILD ]; then
|
||||
abort 'archrelease: PKGBUILD not found'
|
||||
fi
|
||||
|
||||
if [ "$(basename $(readlink -f .))" != 'trunk' ]; then
|
||||
trunk=$(basename $(pwd))
|
||||
|
||||
if [ "$(basename $(dirname $(pwd)))" == "repos" ]; then
|
||||
abort 'archrelease: Not in a package trunk dir'
|
||||
fi
|
||||
|
||||
@@ -27,7 +29,7 @@ if [ -d "repos/${1}" ]; then
|
||||
svn rm --force -q "repos/${1}"
|
||||
svn commit -q -m "archrelease: remove ${1}" || abort
|
||||
fi
|
||||
svn copy -q -r HEAD trunk "repos/${1}"
|
||||
svn commit -q -m "archrelease: copy trunk to ${1}" || abort
|
||||
svn copy -q -r HEAD "${trunk}" "repos/${1}"
|
||||
svn commit -q -m "archrelease: copy ${trunk} to ${1}" || abort
|
||||
popd >/dev/null
|
||||
echo 'done'
|
||||
|
@@ -34,7 +34,7 @@ usage() {
|
||||
while getopts 'r:ufnhC:M:c:' arg; do
|
||||
case "${arg}" in
|
||||
r) RUN="$OPTARG" ;;
|
||||
u) RUN='pacman -Syu --noconfirm' ;;
|
||||
u) RUN='/bin/sh -c "pacman -Syu --noconfirm; pacman -Qqu >/dev/null && pacman -Su --noconfirm"' ;;
|
||||
f) FORCE='y' ;;
|
||||
C) pac_conf="$OPTARG" ;;
|
||||
M) makepkg_conf="$OPTARG" ;;
|
||||
@@ -157,7 +157,7 @@ if [ "$RUN" != "" ]; then
|
||||
chroot_mount
|
||||
copy_hostconf
|
||||
|
||||
chroot "${working_dir}" ${RUN}
|
||||
eval chroot "${working_dir}" ${RUN}
|
||||
|
||||
# }}}
|
||||
else
|
||||
|
Reference in New Issue
Block a user