summaryrefslogtreecommitdiff
path: root/kiw-ventoy/update-ventoy-package.sh
blob: 5cacad6307b1689f8868f4d50c7624a9e6ae95be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh

rm -f ventoy*.tar.gz

VERSION=$(basename $(wget -qO- https://github.com/ventoy/Ventoy/releases|sort|awk -F\" '/linux.tar.gz/&&/href/{print $2}'| tail -n1))

VERSIONNUMBER=$(echo $VERSION|sed 's/linux.tar.gz//' |sed 's/[^0-9.]//g')

SHA256=$(wget -qO- https://github.com/ventoy/Ventoy/releases |grep ^$VERSION|awk '{print $2}')

wget -qO- https://github.com/ventoy/Ventoy/releases|awk -F\" '/linux.tar.gz/&&/href/{print $2;exit}'|wget -B https://github.com -Ni-

echo "$SHA256 $VERSION">ventoysha256
cat ventoysha256 |grep linux.tar.gz >ventoysha256sum
rm -f ventoysha256

echo "$(ls -1 ventoy*.tar.gz) usr/share/kanotix-iso-writer" >debian/kiw-ventoy.install

#dch --distribution unstable --newversion $VERSIONNUMBER "Ventoy $VERSIONNUMBER"
rm -f debian/changelog
dch --distribution unstable --create --package "kiw-ventoy" --newversion $VERSIONNUMBER "Ventoy $VERSIONNUMBER"

debuild -S

echo "Version is: $VERSION"
echo "Version Number is: $VERSIONNUMBER"
echo "SHA-256 sum is: $SHA256"