mirror of
https://gitlab.archlinux.org/archlinux/devtools.git
synced 2025-09-14 18:36:18 +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'
|
abort 'archrelease: PKGBUILD not found'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$(basename $(readlink -f .))" != 'trunk' ]; then
|
trunk=$(basename $(pwd))
|
||||||
|
|
||||||
|
if [ "$(basename $(dirname $(pwd)))" == "repos" ]; then
|
||||||
abort 'archrelease: Not in a package trunk dir'
|
abort 'archrelease: Not in a package trunk dir'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -27,7 +29,7 @@ if [ -d "repos/${1}" ]; then
|
|||||||
svn rm --force -q "repos/${1}"
|
svn rm --force -q "repos/${1}"
|
||||||
svn commit -q -m "archrelease: remove ${1}" || abort
|
svn commit -q -m "archrelease: remove ${1}" || abort
|
||||||
fi
|
fi
|
||||||
svn copy -q -r HEAD trunk "repos/${1}"
|
svn copy -q -r HEAD "${trunk}" "repos/${1}"
|
||||||
svn commit -q -m "archrelease: copy trunk to ${1}" || abort
|
svn commit -q -m "archrelease: copy ${trunk} to ${1}" || abort
|
||||||
popd >/dev/null
|
popd >/dev/null
|
||||||
echo 'done'
|
echo 'done'
|
||||||
|
@@ -34,7 +34,7 @@ usage() {
|
|||||||
while getopts 'r:ufnhC:M:c:' arg; do
|
while getopts 'r:ufnhC:M:c:' arg; do
|
||||||
case "${arg}" in
|
case "${arg}" in
|
||||||
r) RUN="$OPTARG" ;;
|
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' ;;
|
f) FORCE='y' ;;
|
||||||
C) pac_conf="$OPTARG" ;;
|
C) pac_conf="$OPTARG" ;;
|
||||||
M) makepkg_conf="$OPTARG" ;;
|
M) makepkg_conf="$OPTARG" ;;
|
||||||
@@ -157,7 +157,7 @@ if [ "$RUN" != "" ]; then
|
|||||||
chroot_mount
|
chroot_mount
|
||||||
copy_hostconf
|
copy_hostconf
|
||||||
|
|
||||||
chroot "${working_dir}" ${RUN}
|
eval chroot "${working_dir}" ${RUN}
|
||||||
|
|
||||||
# }}}
|
# }}}
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user