mirror of
https://gitlab.archlinux.org/archlinux/devtools.git
synced 2025-09-13 09:56:18 +02:00
Compare commits
9 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
bd6a5df0ab | ||
![]() |
ba6e6648e9 | ||
![]() |
d01f3d53e8 | ||
![]() |
fd04791f5b | ||
![]() |
38dc2efcd5 | ||
![]() |
a78c8f2cb9 | ||
![]() |
7c3bb0642a | ||
![]() |
8842f31551 | ||
![]() |
e76a1b2def |
7
Makefile
7
Makefile
@@ -8,6 +8,10 @@ install:
|
||||
ln -sf extrapkg $(DESTDIR)/usr/bin/corepkg
|
||||
ln -sf extrapkg $(DESTDIR)/usr/bin/testingpkg
|
||||
ln -sf extrapkg $(DESTDIR)/usr/bin/unstablepkg
|
||||
# arch{co,release,rm}
|
||||
install -m 755 archco $(DESTDIR)/usr/bin
|
||||
install -m 755 archrelease $(DESTDIR)/usr/bin
|
||||
install -m 755 archrm $(DESTDIR)/usr/bin
|
||||
# new chroot tools, only usable by root
|
||||
mkdir -p $(DESTDIR)/usr/sbin
|
||||
install -m 755 mkarchroot $(DESTDIR)/usr/sbin
|
||||
@@ -27,3 +31,6 @@ uninstall:
|
||||
rm $(DESTDIR)/usr/sbin/makechrootpkg
|
||||
rm $(DESTDIR)/usr/bin/lddd
|
||||
rm $(DESTDIR)/usr/bin/finddeps
|
||||
rm $(DESTDIR)/usr/bin/archco
|
||||
rm $(DESTDIR)/usr/bin/archrelease
|
||||
rm $(DESTDIR)/usr/bin/archrm
|
||||
|
10
archco
Executable file
10
archco
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ "$1" = "" ]; then
|
||||
echo "Usage: archco <package name> [<package name>]"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
for i in "$@"; do
|
||||
svn co svn+ssh://svn.archlinux.org/home/svn-packages/$i
|
||||
done
|
29
archrelease
Executable file
29
archrelease
Executable file
@@ -0,0 +1,29 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ "$1" = "" ]; then
|
||||
echo "Usage: archrelease <repo>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -d ../repos/$1 ]; then
|
||||
pushd ..
|
||||
svn copy -r HEAD trunk repos/$1
|
||||
svn commit -m "archrelease: new repo $1"
|
||||
pushd repos/$1
|
||||
svnmerge init
|
||||
svn commit -F svnmerge-commit-message.txt
|
||||
rm svnmerge-commit-message.txt
|
||||
popd
|
||||
popd
|
||||
else
|
||||
svnmerge merge ../repos/$1
|
||||
pushd ..
|
||||
if [ -f trunk/svnmerge-commit-message.txt ]; then
|
||||
svn commit -F trunk/svnmerge-commit-message.txt
|
||||
rm trunk/svnmerge-commit-message.txt
|
||||
else
|
||||
echo "Nothing to commit"
|
||||
fi
|
||||
popd
|
||||
fi
|
||||
|
13
archrm
Executable file
13
archrm
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ "$1" = "" ]; then
|
||||
echo "Usage: archrm <path to checkout>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# FIXME: Check if there are uncommited changes
|
||||
#pushd $1
|
||||
#
|
||||
#popd
|
||||
|
||||
rm -rf $1
|
19
extrapkg
19
extrapkg
@@ -20,14 +20,10 @@ if [ ! -f PKGBUILD ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# define tags and staging areas based on architecture
|
||||
# define staging areas based on architecture
|
||||
if [ "$CARCH" = "i686" ]; then
|
||||
currenttag='CURRENT'
|
||||
testingtag='TESTING'
|
||||
suffix=''
|
||||
elif [ "$CARCH" = "x86_64" ]; then
|
||||
currenttag='CURRENT-64'
|
||||
testingtag='TESTING-64'
|
||||
suffix='64'
|
||||
else
|
||||
echo "CARCH must be set to a recognized value!"
|
||||
@@ -54,19 +50,14 @@ fi
|
||||
|
||||
if [ "$cmd" == "extrapkg" ]; then
|
||||
repo="extra"
|
||||
tag="$currenttag"
|
||||
elif [ "$cmd" == "corepkg" ]; then
|
||||
repo="core"
|
||||
tag="$currenttag"
|
||||
elif [ "$cmd" == "testingpkg" ]; then
|
||||
repo="testing"
|
||||
tag="$testingtag"
|
||||
elif [ "$cmd" == "unstablepkg" ]; then
|
||||
repo="unstable"
|
||||
tag="$currenttag"
|
||||
elif [ "$cmd" == "communitypkg" ]; then
|
||||
repo="community"
|
||||
tag="$currenttag"
|
||||
fi
|
||||
|
||||
# see if any limit options were passed, we'll send them to SCP
|
||||
@@ -105,7 +96,7 @@ fi
|
||||
echo "===> Uploaded $pkgfile"
|
||||
|
||||
if [ "$1" != "" ]; then
|
||||
cvs commit -m "upgpkg: $pkgname $pkgver-$pkgrel
|
||||
svn commit -m "upgpkg: $pkgname $pkgver-$pkgrel
|
||||
$1" > /dev/null
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Cancelled"
|
||||
@@ -114,7 +105,7 @@ if [ "$1" != "" ]; then
|
||||
echo "===> Commited with \"upgpkg: $pkgname $pkgver-$pkgrel
|
||||
$1\" message"
|
||||
else
|
||||
cvs commit -m "upgpkg: $pkgname $pkgver-$pkgrel" > /dev/null
|
||||
svn commit -m "upgpkg: $pkgname $pkgver-$pkgrel" > /dev/null
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Cancelled"
|
||||
exit 1
|
||||
@@ -122,11 +113,11 @@ else
|
||||
echo "===> Commited with \"upgpkg: $pkgname $pkgver-$pkgrel\" message"
|
||||
fi
|
||||
|
||||
cvs tag -c -F -R $tag > /dev/null
|
||||
archrelease $repo-$CARCH
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Cancelled"
|
||||
exit 1
|
||||
fi
|
||||
echo "===> Tagged as $tag"
|
||||
echo "===> Tagged for $repo-$CARCH"
|
||||
|
||||
# vim:ft=sh:ts=4:sw=4:et:
|
||||
|
@@ -180,6 +180,7 @@ fi
|
||||
#!/bin/bash
|
||||
export LANG=$LOCALE
|
||||
cd /build
|
||||
export HOME=/build
|
||||
sudo -u nobody makepkg $MAKEPKG_ARGS || touch BUILD_FAILED
|
||||
EOF
|
||||
) > "$uniondir/chrootbuild"
|
||||
|
Reference in New Issue
Block a user