Skip to content

Commit 3385b64

Browse files
committed
Simplify install script
1 parent 8c48511 commit 3385b64

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ pypi-upload: prep
4040
twine upload --sign --identity 6AE2A84723D56D985B340BC08E5FA4709F69E911 --repository $(PYPI_REPO) dist/*
4141

4242
release: setver
43-
$(SEDI) "s/(RELEASE=')[0-9].+/\1$(VERSION)'/" scripts/install
43+
$(SEDI) "s/(RELEASE=).*/\1$(VERSIONQ)/" scripts/install
4444

4545
setver:
4646
$(SEDI) "s/(^VERSION =).*/\1 $(VERSIONQ)/" postqf/__init__.py

scripts/install

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
set -euo pipefail
77
declare -r BNAME="$(basename ${0})"
8+
declare -r RELEASE='0.3'
89

910
function _die {
1011
echo >&2 "$@"
@@ -31,11 +32,4 @@ EOT
3132
echo You can now launch PostQF using $(realpath postqf)
3233
}
3334

34-
if [ $# -eq 0 ]; then
35-
RELEASE='0.2'
36-
elif [ $# -eq 1 ]; then
37-
RELEASE="${1}"
38-
else
39-
_die "Usage: ${BNAME} [release]"
40-
fi
4135
_install

0 commit comments

Comments
 (0)