updated deb/ppa build scripts
This commit is contained in:
parent
03e20842fb
commit
908f6763be
|
@ -4,8 +4,8 @@ root: /Solaar/
|
||||||
owner: pwr
|
owner: pwr
|
||||||
owner_url: https://github.com/pwr
|
owner_url: https://github.com/pwr
|
||||||
repository: https://github.com/pwr/Solaar
|
repository: https://github.com/pwr/Solaar
|
||||||
version: 0.8.9.1
|
version: 0.8.9.2
|
||||||
tar_download: https://github.com/pwr/Solaar/archive/0.8.9.1.tar.gz
|
tar_download: https://github.com/pwr/Solaar/archive/0.8.9.2.tar.gz
|
||||||
ga_id: UA-36908718-1
|
ga_id: UA-36908718-1
|
||||||
|
|
||||||
pygments: true
|
pygments: true
|
||||||
|
|
|
@ -3,18 +3,24 @@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
DEVSCRIPTS="${HOME}/.devscripts"
|
DEVSCRIPTS="${HOME}/.devscripts"
|
||||||
test -r "${DEVSCRIPTS}" && . "${DEVSCRIPTS}"
|
. "${DEVSCRIPTS}"
|
||||||
DEVSCRIPTS="${XDG_CONFIG_HOME:-${HOME}/.config}/debian/devscripts"
|
|
||||||
test -r "${DEVSCRIPTS}" && . "${DEVSCRIPTS}"
|
DISTRIBUTION=${DISTRIBUTION:-debian}
|
||||||
|
|
||||||
cd "$(dirname "$0")/.."
|
cd "$(dirname "$0")/.."
|
||||||
DEBIAN_FILES="$PWD/packaging/debian"
|
DEBIAN_FILES="$PWD/packaging/debian"
|
||||||
DIST="$PWD/dist/${DISTRIBUTION:=debian}"
|
DIST="$PWD/dist/$DISTRIBUTION"
|
||||||
DIST_RELEASE=${DIST_RELEASE:-UNRELEASED}
|
export DIST_RELEASE=${DIST_RELEASE:-UNRELEASED}
|
||||||
|
|
||||||
BUILD_DIR="${TMPDIR:-/tmp}/$DIST"
|
#
|
||||||
rm -rf "$BUILD_DIR"
|
# build a python sdist package
|
||||||
mkdir -m 0700 -p "$BUILD_DIR"
|
#
|
||||||
|
|
||||||
|
export TMPDIR=${TMPDIR:-/tmp}/solaar-build-$USER
|
||||||
|
/bin/mkdir --parents --mode=0700 "$TMPDIR"
|
||||||
|
BUILD_DIR="$TMPDIR/build-$DISTRIBUTION"
|
||||||
|
/bin/rm --recursive --force "$BUILD_DIR"
|
||||||
|
/bin/mkdir --parents --mode=0700 "$BUILD_DIR"
|
||||||
python "setup.py" sdist --dist-dir="$BUILD_DIR" --formats=gztar
|
python "setup.py" sdist --dist-dir="$BUILD_DIR" --formats=gztar
|
||||||
|
|
||||||
cd "$BUILD_DIR"
|
cd "$BUILD_DIR"
|
||||||
|
@ -40,6 +46,10 @@ fi
|
||||||
tar xfz "$S"
|
tar xfz "$S"
|
||||||
mv "$S" solaar_$VERSION.orig.tar.gz
|
mv "$S" solaar_$VERSION.orig.tar.gz
|
||||||
|
|
||||||
|
#
|
||||||
|
# finally build the package
|
||||||
|
#
|
||||||
|
|
||||||
cd solaar-$VERSION
|
cd solaar-$VERSION
|
||||||
cp -a "$DEBIAN_FILES" .
|
cp -a "$DEBIAN_FILES" .
|
||||||
cat >debian/changelog <<_CHANGELOG
|
cat >debian/changelog <<_CHANGELOG
|
||||||
|
@ -54,10 +64,11 @@ test -z "$BUILD_EXTRA" && cp debian/changelog "$DEBIAN_FILES"/changelog
|
||||||
|
|
||||||
test -n "$DEBIAN_FILES_EXTRA" && cp -a $DEBIAN_FILES_EXTRA/* debian/
|
test -n "$DEBIAN_FILES_EXTRA" && cp -a $DEBIAN_FILES_EXTRA/* debian/
|
||||||
|
|
||||||
debuild ${DEBUILD_ARGS:-$@}
|
/usr/bin/debuild ${DEBUILD_ARGS:-$@} \
|
||||||
|
--lintian-opts --profile $DISTRIBUTION
|
||||||
|
|
||||||
rm -rf "$DIST"
|
/bin/rm --force "$DIST"/*
|
||||||
mkdir -p "$DIST"
|
/bin/mkdir --parents "$DIST"
|
||||||
cp -a -t "$DIST" ../solaar_$VERSION*
|
cp -a -t "$DIST" ../solaar_$VERSION*
|
||||||
cp -a -t "$DIST" ../solaar-*_$VERSION* || true
|
cp -a -t "$DIST" ../solaar-*_$VERSION* || true
|
||||||
cd "$DIST"
|
cd "$DIST"
|
||||||
|
|
|
@ -3,9 +3,16 @@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd "$(dirname "$0")"/..
|
cd "$(dirname "$0")"/..
|
||||||
pwd
|
|
||||||
|
|
||||||
./packaging/build_ppa.sh -S
|
./packaging/build_ppa.sh -S
|
||||||
|
|
||||||
cd ./dist/ubuntu/
|
cd ./dist/ubuntu/
|
||||||
dput solaar-snapshots-ppa solaar_*_source.changes
|
|
||||||
|
C=${XDG_CONFIG_HOME:-$HOME/.config}/debian/dput.cf
|
||||||
|
if test -r "$C"; then
|
||||||
|
C="--config $C"
|
||||||
|
elif test -r "$HOME/.dput.cf"; then
|
||||||
|
C="--config=$HOME/.dput.cf"
|
||||||
|
else
|
||||||
|
unset C
|
||||||
|
fi
|
||||||
|
/usr/bin/dput $C solaar-snapshots-ppa solaar_*_source.changes
|
||||||
|
|
Loading…
Reference in New Issue