Compare commits

...

8 Commits
0.5.1 ... 0.6.1

Author SHA1 Message Date
Aaron Griffin
ba6e6648e9 Copy only the HEAD revision when releasing
This prevents the copying of local files and only
copies versioned files

Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-04-08 01:53:18 -05:00
Aaron Griffin
d01f3d53e8 Add '64' suffix back to extrapkg
This was accidentally scrubbed, breaking 64bit uploads

Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-04-08 01:48:43 -05:00
Aaron Griffin
fd04791f5b archrelease modifications to auto-commit handling
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-04-08 01:46:29 -05:00
Jason Chu
38dc2efcd5 Accept multiple package names to checkout with archco 2008-04-05 18:50:50 -07:00
Jason Chu
a78c8f2cb9 Fix a typo in archco -- now it has the proper url 2008-04-05 18:35:56 -07:00
Jason Chu
7c3bb0642a Update extrapkg to use svn & archrelease instead of cvs 2008-04-05 18:12:16 -07:00
Jason Chu
8842f31551 Add arch{co,release,rm} to devtools and make them install properly 2008-04-05 18:11:32 -07:00
Aaron Griffin
e76a1b2def Set $HOME before dropping permissions
Because we need a root user to chroot, when we drop
permissions to 'nobody', we're still using HOME=/root

Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
2008-03-17 12:55:24 -05:00
6 changed files with 60 additions and 14 deletions

View File

@@ -8,6 +8,10 @@ install:
ln -sf extrapkg $(DESTDIR)/usr/bin/corepkg ln -sf extrapkg $(DESTDIR)/usr/bin/corepkg
ln -sf extrapkg $(DESTDIR)/usr/bin/testingpkg ln -sf extrapkg $(DESTDIR)/usr/bin/testingpkg
ln -sf extrapkg $(DESTDIR)/usr/bin/unstablepkg 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 # new chroot tools, only usable by root
mkdir -p $(DESTDIR)/usr/sbin mkdir -p $(DESTDIR)/usr/sbin
install -m 755 mkarchroot $(DESTDIR)/usr/sbin install -m 755 mkarchroot $(DESTDIR)/usr/sbin
@@ -27,3 +31,6 @@ uninstall:
rm $(DESTDIR)/usr/sbin/makechrootpkg rm $(DESTDIR)/usr/sbin/makechrootpkg
rm $(DESTDIR)/usr/bin/lddd rm $(DESTDIR)/usr/bin/lddd
rm $(DESTDIR)/usr/bin/finddeps rm $(DESTDIR)/usr/bin/finddeps
rm $(DESTDIR)/usr/bin/archco
rm $(DESTDIR)/usr/bin/archrelease
rm $(DESTDIR)/usr/bin/archrm

10
archco Executable file
View 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

24
archrelease Executable file
View File

@@ -0,0 +1,24 @@
#!/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"
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
View 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

View File

@@ -20,14 +20,10 @@ if [ ! -f PKGBUILD ]; then
exit 1 exit 1
fi fi
# define tags and staging areas based on architecture # define staging areas based on architecture
if [ "$CARCH" = "i686" ]; then if [ "$CARCH" = "i686" ]; then
currenttag='CURRENT'
testingtag='TESTING'
suffix='' suffix=''
elif [ "$CARCH" = "x86_64" ]; then elif [ "$CARCH" = "x86_64" ]; then
currenttag='CURRENT-64'
testingtag='TESTING-64'
suffix='64' suffix='64'
else else
echo "CARCH must be set to a recognized value!" echo "CARCH must be set to a recognized value!"
@@ -54,19 +50,14 @@ fi
if [ "$cmd" == "extrapkg" ]; then if [ "$cmd" == "extrapkg" ]; then
repo="extra" repo="extra"
tag="$currenttag"
elif [ "$cmd" == "corepkg" ]; then elif [ "$cmd" == "corepkg" ]; then
repo="core" repo="core"
tag="$currenttag"
elif [ "$cmd" == "testingpkg" ]; then elif [ "$cmd" == "testingpkg" ]; then
repo="testing" repo="testing"
tag="$testingtag"
elif [ "$cmd" == "unstablepkg" ]; then elif [ "$cmd" == "unstablepkg" ]; then
repo="unstable" repo="unstable"
tag="$currenttag"
elif [ "$cmd" == "communitypkg" ]; then elif [ "$cmd" == "communitypkg" ]; then
repo="community" repo="community"
tag="$currenttag"
fi fi
# see if any limit options were passed, we'll send them to SCP # see if any limit options were passed, we'll send them to SCP
@@ -105,7 +96,7 @@ fi
echo "===> Uploaded $pkgfile" echo "===> Uploaded $pkgfile"
if [ "$1" != "" ]; then if [ "$1" != "" ]; then
cvs commit -m "upgpkg: $pkgname $pkgver-$pkgrel svn commit -m "upgpkg: $pkgname $pkgver-$pkgrel
$1" > /dev/null $1" > /dev/null
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo "Cancelled" echo "Cancelled"
@@ -114,7 +105,7 @@ if [ "$1" != "" ]; then
echo "===> Commited with \"upgpkg: $pkgname $pkgver-$pkgrel echo "===> Commited with \"upgpkg: $pkgname $pkgver-$pkgrel
$1\" message" $1\" message"
else else
cvs commit -m "upgpkg: $pkgname $pkgver-$pkgrel" > /dev/null svn commit -m "upgpkg: $pkgname $pkgver-$pkgrel" > /dev/null
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo "Cancelled" echo "Cancelled"
exit 1 exit 1
@@ -122,11 +113,11 @@ else
echo "===> Commited with \"upgpkg: $pkgname $pkgver-$pkgrel\" message" echo "===> Commited with \"upgpkg: $pkgname $pkgver-$pkgrel\" message"
fi fi
cvs tag -c -F -R $tag > /dev/null archrelease $repo-$CARCH
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo "Cancelled" echo "Cancelled"
exit 1 exit 1
fi fi
echo "===> Tagged as $tag" echo "===> Tagged for $repo-$CARCH"
# vim:ft=sh:ts=4:sw=4:et: # vim:ft=sh:ts=4:sw=4:et:

View File

@@ -180,6 +180,7 @@ fi
#!/bin/bash #!/bin/bash
export LANG=$LOCALE export LANG=$LOCALE
cd /build cd /build
export HOME=/build
sudo -u nobody makepkg $MAKEPKG_ARGS || touch BUILD_FAILED sudo -u nobody makepkg $MAKEPKG_ARGS || touch BUILD_FAILED
EOF EOF
) > "$uniondir/chrootbuild" ) > "$uniondir/chrootbuild"