You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
copyq/CopyQ-3.0.2/utils/debian/update_changelog.sh

25 lines
517 B

#!/bin/bash
set -e
distro=${1:-xenial}
version="$(git describe|sed 's/^v//;s/-/./;s/-/~/')~$distro"
if [ "$distro" == "trusty" ]; then
cp debian/control{-qt4,}
cp debian/rules{-qt4,}
else
git checkout HEAD debian/control debian/rules
fi
git checkout HEAD debian/changelog
dch \
-M \
-v "$version" \
-D "$distro" "from git commit $(git rev-parse HEAD)"
git diff
echo "To upload source code for $version run:"
echo " debuild -S && dput ppa:hluk/copyq-beta ../copyq_${version}_source.changes"