mirror of
https://gitlab.archlinux.org/archlinux/devtools.git
synced 2025-09-13 09:56:18 +02:00
Compare commits
15 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
dcc7b6728d | ||
![]() |
88764c0298 | ||
![]() |
f2959b8dd5 | ||
![]() |
0564514df4 | ||
![]() |
edb24eb1a0 | ||
![]() |
a2132bc899 | ||
![]() |
964c0d1640 | ||
![]() |
76f3e25949 | ||
![]() |
85251a1d7b | ||
![]() |
27df94f51b | ||
![]() |
12eec95ff8 | ||
![]() |
d4f00819ac | ||
![]() |
4a4455c086 | ||
![]() |
52e140f2fe | ||
![]() |
48dead1af7 |
3
archco
3
archco
@@ -8,6 +8,3 @@ fi
|
||||
for i in "$@"; do
|
||||
svn co svn+ssh://gerolde.archlinux.org/srv/svn-packages/$i
|
||||
done
|
||||
|
||||
# vim: set noexpandtab tabstop=8 shiftwidth=8 wrap:textwidth=132 autoindent
|
||||
# kate: indent-mode normal; indent-width 8; tab-indents on; tab-width 8; word-wrap on; word-wrap-column 132
|
||||
|
@@ -31,6 +31,3 @@ svn copy -q -r HEAD trunk "repos/${1}"
|
||||
svn commit -q -m "archrelease: copy trunk to ${1}" || abort
|
||||
popd >/dev/null
|
||||
echo 'done'
|
||||
|
||||
# vim: set noexpandtab tabstop=8 shiftwidth=8 wrap:textwidth=132 autoindent
|
||||
# kate: indent-mode normal; indent-width 8; tab-indents on; tab-width 8; word-wrap on; word-wrap-column 132
|
||||
|
3
archrm
3
archrm
@@ -11,6 +11,3 @@ fi
|
||||
#popd
|
||||
|
||||
rm -rf $1
|
||||
|
||||
# vim: set noexpandtab tabstop=8 shiftwidth=8 wrap:textwidth=132 autoindent
|
||||
# kate: indent-mode normal; indent-width 8; tab-indents on; tab-width 8; word-wrap on; word-wrap-column 132
|
||||
|
3
checkpkg
3
checkpkg
@@ -90,6 +90,3 @@ for _pkgname in ${pkgname[@]}; do
|
||||
echo "No filename differences for $_pkgname."
|
||||
fi
|
||||
done
|
||||
|
||||
# vim: set noexpandtab tabstop=8 shiftwidth=8 wrap:textwidth=132 autoindent
|
||||
# kate: indent-mode normal; indent-width 8; tab-indents on; tab-width 8; word-wrap on; word-wrap-column 132
|
||||
|
21
commitpkg
21
commitpkg
@@ -61,12 +61,24 @@ else
|
||||
fi
|
||||
|
||||
# check if all local source files are under version control
|
||||
(for s in ${source[@]} $install; do
|
||||
(for s in ${source[@]}; do
|
||||
echo $s | grep -vq '://' && \
|
||||
svn status $s | grep -q '?' && \
|
||||
abort "$s is not under version control"
|
||||
done) || true
|
||||
|
||||
# check if changelog and install files are under version control
|
||||
(for i in 'changelog' 'install'; do
|
||||
filelist=$(sed -n "s/^[[:space:]]*$i=//p" PKGBUILD)
|
||||
for file in $filelist; do
|
||||
# evaluate any bash variables used
|
||||
eval file=${file}
|
||||
if svn status ${file} | grep -q '?'; then
|
||||
abort "${file} is not under version control"
|
||||
fi
|
||||
done
|
||||
done) || true
|
||||
|
||||
# see if any limit options were passed, we'll send them to rsync
|
||||
unset rsyncopts
|
||||
if [ "$1" = '-l' ]; then
|
||||
@@ -96,7 +108,7 @@ for _arch in ${arch[@]}; do
|
||||
fi
|
||||
|
||||
echo -n 'uploading '
|
||||
rsync -c -h -L --progress $rsyncopts "${pkgfile}" -e ssh $server:staging/$repo || abort
|
||||
rsync -p --chmod 'ug=rw,o=r' -c -h -L --progress $rsyncopts --partial "${pkgfile}" -e ssh $server:staging/$repo || abort
|
||||
done
|
||||
archrelease $repo-${_arch} || abort
|
||||
done
|
||||
@@ -104,7 +116,7 @@ done
|
||||
if [ "${arch[*]}" == 'any' ]; then
|
||||
if [ -d ../repos/$repo-i686 -a -d ../repos/$repo-x86_64 ]; then
|
||||
pushd ../repos/ >/dev/null
|
||||
echo -n "removing $repo-i686 and $repo-x86_64..."
|
||||
echo "removing $repo-i686 and $repo-x86_64..."
|
||||
svn rm $repo-i686
|
||||
svn rm $repo-x86_64
|
||||
svn commit -q -m "removed $repo-i686 and $repo-x86_64 for $pkgname"
|
||||
@@ -112,6 +124,3 @@ if [ "${arch[*]}" == 'any' ]; then
|
||||
popd >/dev/null
|
||||
fi
|
||||
fi
|
||||
|
||||
# vim: set noexpandtab tabstop=8 shiftwidth=8 wrap:textwidth=132 autoindent
|
||||
# kate: indent-mode normal; indent-width 8; tab-indents on; tab-width 8; word-wrap on; word-wrap-column 132
|
||||
|
@@ -8,6 +8,3 @@ fi
|
||||
for i in "$@"; do
|
||||
svn co svn+ssh://aur.archlinux.org/srv/svn-packages/$i
|
||||
done
|
||||
|
||||
# vim: set noexpandtab tabstop=8 shiftwidth=8 wrap:textwidth=132 autoindent
|
||||
# kate: indent-mode normal; indent-width 8; tab-indents on; tab-width 8; word-wrap on; word-wrap-column 132
|
||||
|
3
finddeps
3
finddeps
@@ -37,6 +37,3 @@ for d in $(find . -type d); do
|
||||
fi
|
||||
cd $tld
|
||||
done
|
||||
|
||||
# vim: set noexpandtab tabstop=8 shiftwidth=8 wrap:textwidth=132 autoindent
|
||||
# kate: indent-mode normal; indent-width 8; tab-indents on; tab-width 8; word-wrap on; word-wrap-column 132
|
||||
|
3
lddd
3
lddd
@@ -46,6 +46,3 @@ done
|
||||
sort -u $TEMPDIR/pacman.txt >> $TEMPDIR/possible-rebuilds.txt
|
||||
|
||||
echo "Files saved to $TEMPDIR"
|
||||
|
||||
# vim: set noexpandtab tabstop=8 shiftwidth=8 wrap:textwidth=132 autoindent
|
||||
# kate: indent-mode normal; indent-width 8; tab-indents on; tab-width 8; word-wrap on; word-wrap-column 132
|
||||
|
@@ -91,7 +91,6 @@ if [ ! -f PKGBUILD ]; then
|
||||
echo 'This must be run in a directory containing a PKGBUILD.'
|
||||
exit 1
|
||||
fi
|
||||
source PKGBUILD
|
||||
|
||||
if [ ! -d "$chrootdir" ]; then
|
||||
echo "No chroot dir defined, or invalid path '$chrootdir'"
|
||||
@@ -134,8 +133,10 @@ if [ "$REPACK" != "1" ]; then
|
||||
fi
|
||||
|
||||
# Get SRC/PKGDEST from makepkg.conf
|
||||
SRCDEST=$(grep '^SRCDEST=' /etc/makepkg.conf | cut -d= -f2)
|
||||
PKGDEST=$(grep '^PKGDEST=' /etc/makepkg.conf | cut -d= -f2)
|
||||
SRCDEST=$(grep '^SRCDEST=' ~/.makepkg.conf | cut -d= -f2)
|
||||
[ -z ${SRCDEST} ] && SRCDEST=$(grep '^SRCDEST=' /etc/makepkg.conf | cut -d= -f2)
|
||||
PKGDEST=$(grep '^PKGDEST=' ~/.makepkg.conf | cut -d= -f2)
|
||||
[ -z ${PKGDEST} ] && PKGDEST=$(grep '^PKGDEST=' /etc/makepkg.conf | cut -d= -f2)
|
||||
|
||||
[ -d "$copydir/pkgdest" ] || mkdir "$copydir/pkgdest"
|
||||
if ! grep 'PKGDEST=/pkgdest' "$copydir/etc/makepkg.conf" >/dev/null 2>&1; then
|
||||
@@ -147,6 +148,8 @@ if ! grep 'SRCDEST=/srcdest' "$copydir/etc/makepkg.conf" >/dev/null 2>&1; then
|
||||
echo 'SRCDEST=/srcdest' >> "$copydir/etc/makepkg.conf"
|
||||
fi
|
||||
|
||||
# Set target CARCH as it might be used within the PKGBUILD to select correct sources
|
||||
CARCH=$(eval $(grep '^CARCH=' "$copydir/etc/makepkg.conf"))
|
||||
# Copy PKGBUILD and sources
|
||||
source PKGBUILD
|
||||
cp PKGBUILD "$copydir/build/"
|
||||
@@ -159,24 +162,17 @@ for f in ${source[@]}; do
|
||||
fi
|
||||
done
|
||||
|
||||
install_files=$(grep 'install=' PKGBUILD)
|
||||
for pkg in ${pkgname[@]}; do
|
||||
install_files+=' '
|
||||
install_files+=$(echo $install_files |sed "s/\$pkgname/$pkg/"|sed "s/\${pkgname}/$pkg/")
|
||||
install_files=$(eval echo $install_files |tr '[:blank:]' '\n'|sort |uniq)
|
||||
for i in 'changelog' 'install'; do
|
||||
filelist=$(sed -n "s/^[[:space:]]*$i=//p" PKGBUILD)
|
||||
for file in $filelist; do
|
||||
# evaluate any bash variables used
|
||||
eval file=${file}
|
||||
if [[ -f "$file" ]]; then
|
||||
cp "$file" "$copydir/build/"
|
||||
fi
|
||||
done
|
||||
done
|
||||
|
||||
for f in $install_files;do
|
||||
install="${f#"install="}"
|
||||
if [ "$install" != "" -a -f "$install" ]; then
|
||||
cp "$install" "$copydir/build/"
|
||||
fi
|
||||
done
|
||||
|
||||
if [ -f 'ChangeLog' ]; then
|
||||
cp ChangeLog "$copydir/build/"
|
||||
fi
|
||||
|
||||
chown -R nobody "$copydir/build"
|
||||
chown -R nobody "$copydir/srcdest"
|
||||
chown -R nobody "$copydir/pkgdest"
|
||||
@@ -196,7 +192,7 @@ cd /build
|
||||
export HOME=/build
|
||||
sudo -u nobody makepkg $MAKEPKG_ARGS || touch BUILD_FAILED
|
||||
[ -f BUILD_FAILED ] && exit 1
|
||||
which namcap &>/dev/null && namcap /build/PKGBUILD /pkgdest/*.pkg.tar.* > /pkgdest/namcap.log
|
||||
which namcap &>/dev/null && namcap /build/PKGBUILD /pkgdest/*.pkg.tar.* > /build/namcap.log
|
||||
exit 0
|
||||
EOF
|
||||
) > "$copydir/chrootbuild"
|
||||
@@ -205,12 +201,11 @@ chmod +x "$copydir/chrootbuild"
|
||||
if mkarchroot -r "/chrootbuild" "$copydir"; then
|
||||
for pkgfile in "${copydir}"/pkgdest/*.pkg.tar.*; do
|
||||
[ -e "$pkgfile" ] || continue
|
||||
_pkgname=$(basename "$pkgfile")
|
||||
if [ "$add_to_db" -eq "1" ]; then
|
||||
[ -d "${copydir}/repo" ] || mkdir -p "${copydir}/repo"
|
||||
mkdir -p "${copydir}/repo"
|
||||
pushd "${copydir}/repo" >/dev/null
|
||||
cp "$pkgfile" .
|
||||
repo-add repo.db.tar.gz "$_pkgname"
|
||||
repo-add repo.db.tar.gz "$(basename "$pkgfile")"
|
||||
popd >/dev/null
|
||||
fi
|
||||
|
||||
@@ -221,7 +216,7 @@ if mkarchroot -r "/chrootbuild" "$copydir"; then
|
||||
fi
|
||||
done
|
||||
|
||||
for l in "${copydir}"/build/*-{build,package}.log; do
|
||||
for l in "${copydir}"/build/{namcap,*-{build,package}}.log; do
|
||||
[ -f "$l" ] && mv "$l" "${WORKDIR}"
|
||||
done
|
||||
else
|
||||
@@ -241,9 +236,7 @@ done
|
||||
if [ -e "${copydir}/build/BUILD_FAILED" ]; then
|
||||
echo "Build failed, check $copydir/build"
|
||||
rm "${copydir}/build/BUILD_FAILED"
|
||||
exit 1
|
||||
else
|
||||
rm -rf "${copydir}"/build/*
|
||||
fi
|
||||
|
||||
# vim: set noexpandtab tabstop=8 shiftwidth=8 wrap:textwidth=132 autoindent
|
||||
# kate: indent-mode normal; indent-width 8; tab-indents on; tab-width 8; word-wrap on; word-wrap-column 132
|
||||
|
@@ -173,6 +173,3 @@ if [ "$RUN" != "" ]; then
|
||||
fi
|
||||
# }}}
|
||||
fi
|
||||
|
||||
# vim: set noexpandtab tabstop=8 shiftwidth=8 wrap:textwidth=132 autoindent
|
||||
# kate: indent-mode normal; indent-width 8; tab-indents on; tab-width 8; word-wrap on; word-wrap-column 132
|
||||
|
@@ -99,6 +99,3 @@ if [ "$FAILED" != "" ]; then
|
||||
fi
|
||||
|
||||
echo 'SVN pkgbumps in svn-packages/ - commit when ready'
|
||||
|
||||
# vim: set noexpandtab tabstop=8 shiftwidth=8 wrap:textwidth=132 autoindent
|
||||
# kate: indent-mode normal; indent-width 8; tab-indents on; tab-width 8; word-wrap on; word-wrap-column 132
|
||||
|
Reference in New Issue
Block a user