More scripts
This commit is contained in:
parent
e212a2c4b2
commit
7a2f0ef5f6
3 changed files with 34 additions and 0 deletions
6
packaging_scripts/run.sh
Executable file
6
packaging_scripts/run.sh
Executable file
|
@ -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
|
4
packaging_scripts/shasums.sh
Executable file
4
packaging_scripts/shasums.sh
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
BASEDIR=~/sources
|
||||
sha256sum ${BASEDIR}/wireguide{-,_}*|sed "s_ ${HOME}/sources/_|_" | wl-copy
|
||||
vim ${BASEDIR}/wireguide/README.md
|
24
packaging_scripts/version.sh
Executable file
24
packaging_scripts/version.sh
Executable file
|
@ -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 <hej@mic.ke> '$(LC_ALL=C date "+%a, %d %b %Y %T %z")'
|
||||
'| wl-copy
|
||||
|
||||
vim ${BASEDIR}/wireguide/debian/changelog
|
Loading…
Add table
Reference in a new issue