-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into docs_and_inquiries
- Loading branch information
Showing
9 changed files
with
254 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,61 @@ | ||
#!/bin/bash | ||
|
||
true | ||
set -e | ||
|
||
VERB="$1" | ||
VERSION="$2" | ||
|
||
E_BAD_VERB=1 | ||
E_BAD_VERSION=2 | ||
E_BAD_ARGS=3 | ||
|
||
function check_version | ||
{ | ||
VERSION="$1" | ||
if [[ -z "$VERSION" ]]; then | ||
echo "Aborting! $0 $VERB called without providing a package version." | ||
exit $E_BAD_VERSION | ||
fi | ||
} | ||
|
||
case "$VERB" in | ||
remove) | ||
echo "$0 $VERB" | ||
;; | ||
purge) | ||
echo "$0 $VERB" | ||
;; | ||
upgrade) | ||
VERSION="$2" | ||
check_version "$VERSION" | ||
echo "$0 $VERB new-version: $VERSION" | ||
;; | ||
disappear) | ||
PACKAGE="$2" | ||
VERSION="$3" | ||
check_version "$VERSION" | ||
echo "$0 $VERB overwriter: $PACKAGE, overwriter-version: $VERSION" | ||
;; | ||
failed-upgrade) | ||
VERSION="$2" | ||
check_version "$VERSION" | ||
echo "$0 $VERB old-version: $VERSION" | ||
;; | ||
abort-install) | ||
VERSION="$2" | ||
if [[ -z "$VERSION" ]]; then | ||
echo "$0 $VERB" | ||
else | ||
echo "$0 $VERB old-version: $VERSION" | ||
fi | ||
;; | ||
abort-upgrade) | ||
VERSION="$2" | ||
check_version "$VERSION" | ||
echo "$0 $VERB old-version: $VERSION" | ||
;; | ||
*) | ||
echo "$0 called with unexpected package action '$VERB'" | ||
exit $E_BAD_VERB | ||
;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,41 @@ | ||
#!/bin/bash | ||
|
||
true | ||
set -e | ||
|
||
VERB="$1" | ||
VERSION="$2" | ||
|
||
E_BAD_VERB=1 | ||
E_BAD_VERSION=2 | ||
E_BAD_ARGS=3 | ||
|
||
function check_version | ||
{ | ||
VERSION="$1" | ||
if [[ -z "$VERSION" ]]; then | ||
echo "Aborting! $0 $VERB called without providing a package version." | ||
exit $E_BAD_VERSION | ||
fi | ||
} | ||
|
||
case "$VERB" in | ||
install) | ||
if [[ -z "$VERSION" ]]; then | ||
echo "$0 $VERB" | ||
else | ||
echo "$0 $VERB old-version: $VERSION" | ||
fi | ||
;; | ||
upgrade) | ||
check_version "$VERSION" | ||
echo "$0 $VERB old-version: $VERSION" | ||
;; | ||
abort-upgrade) | ||
check_version "$VERSION" | ||
echo "$0 $VERB old-version: $VERSION" | ||
;; | ||
*) | ||
echo "$0 called with unexpected package action '$VERB'" | ||
exit $E_BAD_VERB | ||
;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,56 @@ | ||
#!/bin/bash | ||
|
||
true | ||
set -e | ||
|
||
VERB="$1" | ||
|
||
E_BAD_VERB=1 | ||
E_BAD_VERSION=2 | ||
E_BAD_ARGS=3 | ||
|
||
function check_version | ||
{ | ||
VERSION="$1" | ||
if [[ -z "$VERSION" ]]; then | ||
echo "Aborting! $0 $VERB called without providing a package version." | ||
exit $E_BAD_VERSION | ||
fi | ||
} | ||
|
||
case "$VERB" in | ||
upgrade) | ||
VERSION="$2" | ||
check_version "$VERSION" | ||
echo "$0 $VERB new-version: $VERSION" | ||
;; | ||
remove) | ||
if [[ "$2" = "in-favour" ]]; then | ||
PACKAGE="$3" | ||
VERSION="$4" | ||
check_version "$VERSION" | ||
echo "$0 $VERB in-favour package-being-installed: $PACKAGE, new-version: $VERSION" | ||
else | ||
echo "$0 $VERB" | ||
fi | ||
;; | ||
deconfigure) | ||
if [[ "$2" = "in-favour" ]]; then | ||
PACKAGE="$3" | ||
VERSION="$4" | ||
check_version "$VERSION" | ||
echo "$0 $VERB in favour package-being-installed:$PACKAGE version: $VERSION" | ||
else | ||
echo "$0 $VERB called without correct arguments '$2'" | ||
exit $E_BAD_ARGS | ||
fi | ||
;; | ||
failed-upgrade) | ||
VERSION="$2" | ||
check_version "$VERSION" | ||
echo "$0 $VERB old-version: $VERSION" | ||
;; | ||
*) | ||
echo "$0 called with unexpected package action '$VERB'" | ||
exit $E_BAD_VERB | ||
;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.