向ubuntu launchpad提交包的工具
launchpadtools的Python项目详细描述
启动板工具
一些易于提交到启动板的工具。
使用量
所有选项都记录在launchpad-submit -h
下。
有时,您可能希望提交一个具有以下debian配置的源包 其他地方有。这可能有助于设置夜间提交过程。作为 例如,以a Mixxx PPA的夜间提交脚本为例。
#!/bin/sh -ue
TMP_DIR=$(mktemp -d)
cleanup() { rm -rf "$TMP_DIR"; }
trap cleanup EXIT
CACHE="$HOME/.cache/repo/mixxx"
git -C "$CACHE" pull || git clone "https://github.com/mixxxdj/mixxx.git" "$CACHE"
git clone --shared "$CACHE" "$TMP_DIR"
VERSION=$(grep "define MIXXX_VERSION" "$TMP_DIR/src/defs_version.h" | sed "s/[^0-9]*\([0-9][\.0-9]*\).*/\1/")
FULL_VERSION="$VERSION~$(date +"%Y%m%d%H%M%S")"
CACHE="$HOME/.cache/repo/mixxx-debian"
git -C "$CACHE" pull || git clone "git://anonscm.debian.org/git/pkg-multimedia/mixxx.git" "$CACHE"
rsync -a "$CACHE/debian" "$TMP_DIR"
launchpad-submit \
--directory "$TMP_DIR" \
--ubuntu-releases trusty xenial yakkety zesty \
--ppa nschloe/mixxx-nightly \
--version-override "$FULL_VERSION" \
--version-append-hash \
--update-patches
安装
launchpad工具是available from the Python Package Index,因此用于安装/升级 简单地做
pip3 install launchpadtools --user
许可证
launchpadtools发布在MIT license下。