Initial
This commit is contained in:
25
internal_stuff/repo-server/update-apt-repo
Normal file
25
internal_stuff/repo-server/update-apt-repo
Normal file
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
cd $(dirname $(realpath $0))
|
||||
|
||||
mkdir -p dists/stable/main/binary-all
|
||||
mkdir -p dists/stable/main/binary-amd64
|
||||
|
||||
SIGNKEY=$1
|
||||
[[ -z "$SIGNKEY" ]] && SIGNKEY=$SIGN_KEY
|
||||
[[ -z "$SIGNKEY" ]] && echo "No SIGNKEY (or SIGN_KEY in apt.conf.sh)" && exit 1
|
||||
|
||||
|
||||
# Packages Dateien für die Architekturen erstellen
|
||||
dpkg-scanpackages --multiversion pool/main/. /dev/null > dists/stable/main/binary-all/Packages
|
||||
gzip -k -f dists/stable/main/binary-all/Packages
|
||||
|
||||
# Release Datei erstellen
|
||||
apt-ftparchive release \
|
||||
-c=conf/distributions.stable \
|
||||
dists/stable > dists/stable/Release
|
||||
|
||||
# Release signieren
|
||||
gpg --export --armor $SIGNKEY > repos.gpg.key
|
||||
rm -f dists/stable/Release.gpg dists/stable/InRelease
|
||||
gpg --default-key $SIGNKEY -abs -o dists/stable/Release.gpg dists/stable/Release
|
||||
gpg --default-key $SIGNKEY --clearsign -o dists/stable/InRelease dists/stable/Release
|
||||
32
internal_stuff/reset-package
Executable file
32
internal_stuff/reset-package
Executable file
@@ -0,0 +1,32 @@
|
||||
#!/bin/bash
|
||||
|
||||
cd $(dirname $0)/..
|
||||
. apt.conf.sh
|
||||
|
||||
echo "$*" | grep -qi main && version="1.0.0"
|
||||
echo "$*" | grep -qi minor && version="0.1.0"
|
||||
echo "$*" | grep -qi patch && version="0.0.1"
|
||||
|
||||
[[ -z "$version" ]] && read -p "Auf welche Version? [0.0.1]: " version
|
||||
[[ ! "$version" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] && echo "Falsche Version, nehme 0.0.1" && version="0.0.1"
|
||||
|
||||
|
||||
for i in $(git tag | grep "build-"); do
|
||||
git tag -d "$i"
|
||||
git push origin :$i
|
||||
done
|
||||
|
||||
git submodule update --remote build-scripts || echo
|
||||
git commit -am 'Updated Build scripts' || echo
|
||||
|
||||
ssh user@$DEBHOST find /var/www/$DEBHOST/debian -name "*${PACKAGE_NAME}_*.deb" -delete 2> /dev/null
|
||||
if [[ -f ./bin/package-update ]] && echo "$*" | grep -qv -- '--force'; then
|
||||
read -p "Package Update? [N,y]: " pu
|
||||
[[ "$pu" =~ y|Y ]] && ./bin/package-update
|
||||
fi
|
||||
git rm -f version.txt || echo -n
|
||||
> debian/changelog
|
||||
git commit -am 'reset build'
|
||||
DEBBUILD_ASSUME_YES=y ./bin/build-package -v $version -m Initial
|
||||
|
||||
|
||||
11
internal_stuff/update-build-submodule
Executable file
11
internal_stuff/update-build-submodule
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
[[ ! -f $i/apt.conf.sh ]] && echo "No apt.conf.sh" && exit 1
|
||||
cd $i;
|
||||
echo "Update build-scripts submodule in $i"
|
||||
git submodule update --remote build-scripts > /dev/null 2>&1;
|
||||
if [[ ! -z "$(git status -s)" ]]; then
|
||||
git add build-scripts
|
||||
git commit -m 'updated buildscript submodule'
|
||||
else
|
||||
echo "Unchanged"
|
||||
fi
|
||||
Reference in New Issue
Block a user