summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/x2go-build-package10
-rwxr-xr-xbin/x2go-gitcreate1
2 files changed, 9 insertions, 2 deletions
diff --git a/bin/x2go-build-package b/bin/x2go-build-package
index 88a1174..ec22b88 100755
--- a/bin/x2go-build-package
+++ b/bin/x2go-build-package
@@ -25,6 +25,8 @@ set_vars() {
USE_SUDO="yes"
PDEBUILD="pdebuild --pbuilder qemubuilder"
TEMP_BASE="$HOME/tmp/"
+ mkdir -p "$TEMP_BASE"
+ chmod 2770 "$TEMP_BASE"
# first argv is the name of the Git project
PROJECT=$1
@@ -67,7 +69,7 @@ set_vars() {
clear_pkgdist() {
# pkgdist directory cleanup
- cat BUILDS_FOR | egrep -v '(^$|^#.*$)' | while read line; do
+ cat $PROJECT_DIR/BUILDS_FOR | egrep -v '(^$|^#.*$)' | while read line; do
l_DIST=$(echo $line | cut -d":" -f1 | tr [A-Z] [a-z])
CODENAMES=${CODENAMES:-$(echo $line | cut -d":" -f2- | tr [A-Z] [a#-z])}
echo "$DIST_SUPPORTED" | grep $l_DIST >/dev/null && {
@@ -128,7 +130,7 @@ EOF
build_packages() {
# use pbuilder for building all variants of this package
- cat BUILDS_FOR | egrep -v '(^$|^#.*$)' | while read line; do
+ cat $PROJECT_DIR/BUILDS_FOR | egrep -v '(^$|^#.*$)' | while read line; do
l_DIST=$(echo $line | cut -d":" -f1 | tr [A-Z] [a-z])
CODENAMES=${CODENAMES:-$(echo $line | cut -d":" -f2- | tr [A-Z] [a#-z])}
echo "$DIST_SUPPORTED" | grep $l_DIST >/dev/null && {
@@ -139,6 +141,10 @@ build_packages() {
cd $TEMP_DIR/$PROJECT
git checkout $CHECKOUT || git checkout master
GITREV=$(x2go-gitrevno)
+ # we always build native packages for our repos
+ test -f debian/source/format && cat debian/source/format | egrep '^3.0.*\(quilt\)$' >/dev/null && {
+ echo "3.0 (native)" > debian/source/format
+ }
# translate the version name for Debian releases
[ "x$l_CODENAME" = "xsid" ] && VERSION=unstable
[ "x$l_CODENAME" = "xwheezy" ] && VERSION=testing
diff --git a/bin/x2go-gitcreate b/bin/x2go-gitcreate
index 37f9efa..5c6d387 100755
--- a/bin/x2go-gitcreate
+++ b/bin/x2go-gitcreate
@@ -29,5 +29,6 @@ for pkg in "$@"; do
#echo "$pkg: RELEASE BRANCH" && git push ssh://x2go@code.x2go.org:32032/srv/git/code.x2go.org/$pkg release
#echo "$pkg: PRISTINE-TAR" && git push ssh://x2go@code.x2go.org:32032/srv/git/code.x2go.org/$pkg pristine-tar
echo "$pkg: PUSHING TAGS" && git push --tags ssh://x2go@code.x2go.org:32032/srv/git/code.x2go.org/$pkg
+ git remote add ssh://x2go@code.x2go.org:32032/srv/git/code.x2go.org/$pkg
cd ..
done