-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tooling: Add utility scripts to help using this repository
Also update the README to be closer to the current usage.
- Loading branch information
Showing
4 changed files
with
67 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
# Script to add a version from the dangerzone repository, by | ||
# copying the debian file to the bookworm folder and creating | ||
# symlinks for it. | ||
|
||
set -e | ||
set -x | ||
set -o pipefail | ||
|
||
PACKAGE_SRC=$1 | ||
PACKAGE=$(basename $PACKAGE_SRC) | ||
|
||
cp $PACKAGE_SRC dangerzone/bookworm/$PACKAGE | ||
|
||
for dir in dangerzone/* ; do | ||
if [ "$dir" != "dangerzone/bookworm" ]; then | ||
ln -sf "../bookworm/$PACKAGE" "$dir/." | ||
fi | ||
done |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
# Script to remove all the packages for a specific version | ||
set -e | ||
set -o pipefail | ||
|
||
if [ $# -ne 1 ]; then | ||
echo "Usage: $0 VERSION" | ||
echo "Example: $0 0.7.1" | ||
exit 1 | ||
fi | ||
|
||
VERSION=$1 | ||
rm dangerzone/*/dangerzone_${VERSION}*.deb |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
# Script to reset the repository, without removing the gpg key. | ||
set -e | ||
set -x | ||
set -o pipefail | ||
|
||
rm -rf repo/db repo/public/dists repo/public/pool |