Initial
This commit is contained in:
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user