diff --git a/packaging_scripts/run.sh b/packaging_scripts/run.sh new file mode 100755 index 0000000..dc8c01e --- /dev/null +++ b/packaging_scripts/run.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash +BASEDIR=~/sources +${BASEDIR}/wireguide/pakaging_scripts/version.sh +${BASEDIR}/wireguide/pakaging_scripts/reprepro.sh +${BASEDIR}/wireguide/pakaging_scripts/alien.sh +${BASEDIR}/wireguide/pakaging_scripts/shasums.sh diff --git a/packaging_scripts/shasums.sh b/packaging_scripts/shasums.sh new file mode 100755 index 0000000..0d044ab --- /dev/null +++ b/packaging_scripts/shasums.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +BASEDIR=~/sources +sha256sum ${BASEDIR}/wireguide{-,_}*|sed "s_ ${HOME}/sources/_|_" | wl-copy +vim ${BASEDIR}/wireguide/README.md diff --git a/packaging_scripts/version.sh b/packaging_scripts/version.sh new file mode 100755 index 0000000..a683179 --- /dev/null +++ b/packaging_scripts/version.sh @@ -0,0 +1,24 @@ +#!/usr/bin/env bash +BASEDIR=~/sources +version="${1}" +chlog_msg="${2}" +if [[ "x${version}" == "x" ]]; then + echo -n "Enter version (x.x.x): " + read version +fi +if [[ "x${chlog_msg}" == "x" ]]; then + echo -n "Enter changelog message: " + read chlog_msg +fi +# Code +echo sed -i -E 's/self\.version = "[0-9]+\.[0-9]+\.[0-9]+/self.version = "'${version}'/' ${BASEDIR}/wireguide/src/wireguide + +# Changelog +echo 'wireguide ('${version}') unstable; urgency=low + + * '${chlog_msg}' + + -- Micke Nordin '$(LC_ALL=C date "+%a, %d %b %Y %T %z")' +'| wl-copy + +vim ${BASEDIR}/wireguide/debian/changelog