mirror of
https://gitlab.archlinux.org/archlinux/devtools.git
synced 2025-09-13 18:06:19 +02:00
Compare commits
18 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
f1c05d870b | ||
![]() |
2e6d542220 | ||
![]() |
cfddde22be | ||
![]() |
f7b67c25ff | ||
![]() |
65d654a9d7 | ||
![]() |
cfdfbd99f8 | ||
![]() |
a01ed3869c | ||
![]() |
e656ec7052 | ||
![]() |
dcc7b6728d | ||
![]() |
88764c0298 | ||
![]() |
f2959b8dd5 | ||
![]() |
0564514df4 | ||
![]() |
edb24eb1a0 | ||
![]() |
a2132bc899 | ||
![]() |
964c0d1640 | ||
![]() |
76f3e25949 | ||
![]() |
85251a1d7b | ||
![]() |
27df94f51b |
4
Makefile
4
Makefile
@@ -1,4 +1,4 @@
|
||||
V=0.9.6
|
||||
V=0.9.8
|
||||
|
||||
all:
|
||||
|
||||
@@ -10,6 +10,7 @@ install:
|
||||
ln -sf commitpkg $(DESTDIR)/usr/bin/extrapkg
|
||||
ln -sf commitpkg $(DESTDIR)/usr/bin/corepkg
|
||||
ln -sf commitpkg $(DESTDIR)/usr/bin/testingpkg
|
||||
ln -sf commitpkg $(DESTDIR)/usr/bin/stagingpkg
|
||||
ln -sf commitpkg $(DESTDIR)/usr/bin/communitypkg
|
||||
ln -sf commitpkg $(DESTDIR)/usr/bin/community-testingpkg
|
||||
# arch{co,release,rm}
|
||||
@@ -33,6 +34,7 @@ uninstall:
|
||||
rm $(DESTDIR)/usr/bin/extrapkg
|
||||
rm $(DESTDIR)/usr/bin/corepkg
|
||||
rm $(DESTDIR)/usr/bin/testingpkg
|
||||
rm $(DESTDIR)/usr/bin/stagingpkg
|
||||
rm $(DESTDIR)/usr/bin/communitypkg
|
||||
rm $(DESTDIR)/usr/bin/community-testingpkg
|
||||
rm $(DESTDIR)/usr/sbin/mkarchroot
|
||||
|
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
|
||||
|
8
checkpkg
8
checkpkg
@@ -27,6 +27,9 @@ if [ "$arch" == 'any' ]; then
|
||||
CARCH='any'
|
||||
fi
|
||||
|
||||
TEMPDIR=$(mktemp -d /tmp/checkpkg-script.XXXX)
|
||||
cd $TEMPDIR
|
||||
|
||||
for _pkgname in ${pkgname[@]}; do
|
||||
pkgfile=${_pkgname}-${pkgver}-${pkgrel}-${CARCH}${PKGEXT}
|
||||
oldstylepkgfile=${_pkgname}-${pkgver}-${pkgrel}${PKGEXT}
|
||||
@@ -87,9 +90,8 @@ for _pkgname in ${pkgname[@]}; do
|
||||
objdump -p $i | grep SONAME
|
||||
done
|
||||
else
|
||||
echo "No filename differences for $_pkgname."
|
||||
echo "No soname 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
|
||||
echo "Files saved to $TEMPDIR"
|
||||
|
23
commitpkg
23
commitpkg
@@ -46,6 +46,8 @@ elif [ "$cmd" == 'corepkg' ]; then
|
||||
repo='core'
|
||||
elif [ "$cmd" == 'testingpkg' ]; then
|
||||
repo='testing'
|
||||
elif [ "$cmd" == 'stagingpkg' ]; then
|
||||
repo='staging'
|
||||
elif [ "$cmd" == 'communitypkg' ]; then
|
||||
repo='community'
|
||||
server='aur.archlinux.org'
|
||||
@@ -61,12 +63,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 +110,7 @@ for _arch in ${arch[@]}; do
|
||||
fi
|
||||
|
||||
echo -n 'uploading '
|
||||
rsync -p --chmod 'ug=rw,o=r' -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 +118,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 +126,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
|
||||
|
7
lddd
7
lddd
@@ -9,9 +9,7 @@ IFS=':'
|
||||
libdirs='/lib:/usr/lib:/opt/qt/lib:/opt/kde/lib:/usr/lib/libfakeroot:/opt/NX/lib'
|
||||
extras=
|
||||
|
||||
TEMPDIR=$(mktemp /tmp/lddd-script.XXXX)
|
||||
rm $TEMPDIR
|
||||
mkdir -p $TEMPDIR
|
||||
TEMPDIR=$(mktemp -d /tmp/lddd-script.XXXX)
|
||||
|
||||
echo 'Go out and drink some tea, this will take a while :) ...'
|
||||
# Check ELF binaries in the PATH and specified dir trees.
|
||||
@@ -46,6 +44,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,12 @@ 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)
|
||||
if [ -f ~/.makepkg.conf ]; then
|
||||
SRCDEST=$(grep '^SRCDEST=' ~/.makepkg.conf | cut -d= -f2)
|
||||
PKGDEST=$(grep '^PKGDEST=' ~/.makepkg.conf | cut -d= -f2)
|
||||
fi
|
||||
[ -z ${SRCDEST} ] && SRCDEST=$(grep '^SRCDEST=' /etc/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
|
||||
@@ -161,24 +164,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"
|
||||
@@ -246,6 +242,3 @@ if [ -e "${copydir}/build/BUILD_FAILED" ]; then
|
||||
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
|
||||
|
11
mkarchroot
11
mkarchroot
@@ -84,6 +84,12 @@ chroot_mount() {
|
||||
[ -e "${working_dir}/dev" ] || mkdir "${working_dir}/dev"
|
||||
mount -o bind /dev "${working_dir}/dev"
|
||||
|
||||
[ -e "${working_dir}/dev/shm" ] || mkdir "${working_dir}/dev/shm"
|
||||
mount -t tmpfs shm "${working_dir}/dev/shm"
|
||||
|
||||
[ -e "${working_dir}/dev/pts" ] || mkdir "${working_dir}/dev/pts"
|
||||
mount -t devpts devpts "${working_dir}/dev/pts"
|
||||
|
||||
[ -e "${cache_dir}" ] || mkdir -p "${cache_dir}"
|
||||
[ -e "${working_dir}/${cache_dir}" ] || mkdir -p "${working_dir}/${cache_dir}"
|
||||
mount -o bind "${cache_dir}" "${working_dir}/${cache_dir}"
|
||||
@@ -99,6 +105,8 @@ copy_hostconf () {
|
||||
chroot_umount () {
|
||||
umount "${working_dir}/proc"
|
||||
umount "${working_dir}/sys"
|
||||
umount "${working_dir}/dev/pts"
|
||||
umount "${working_dir}/dev/shm"
|
||||
umount "${working_dir}/dev"
|
||||
umount "${working_dir}/${cache_dir}"
|
||||
}
|
||||
@@ -173,6 +181,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