Update debian/watch
This commit is contained in:
parent
ecdf0d31d9
commit
a2bcb01354
22
debian/script-targz
vendored
Executable file
22
debian/script-targz
vendored
Executable file
@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
if [ "$1" = '--upstream-version' ]; then
|
||||
new_version="$2"
|
||||
else
|
||||
printf "Missing --upstream-version argument" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
DEB_SOURCE="$(dpkg-parsechangelog -SSource)"
|
||||
|
||||
default_branch="$(git remote show https://github.com/aircrack-ng/rtl8812au.git | grep 'HEAD' | sed 's/.*: v//')"
|
||||
|
||||
version="$(echo ${new_version} | sed 's/~git.*//')"
|
||||
|
||||
# fails if the upstream default branch has changed and is no longer the
|
||||
# version mentioned in debian/watch
|
||||
if [ "${default_branch}" != "${version}" ]; then
|
||||
exit 1
|
||||
fi
|
9
debian/watch
vendored
9
debian/watch
vendored
@ -1,3 +1,8 @@
|
||||
version=4
|
||||
opts="filenamemangle=s/.*\/v?(.*)\.tar\.gz/realtek-rtl88xxau-$1.tar.gz/" \
|
||||
https://github.com/aircrack-ng/rtl8812au/tags .*/v?(.*)\.tar\.gz
|
||||
opts="mode=git, pretty=5.6.4.2~git%cd.%h, pgpmode=none" \
|
||||
https://github.com/aircrack-ng/rtl8812au.git \
|
||||
HEAD debian debian/script-targz
|
||||
|
||||
# Use the following when upstream starts to tag releases:
|
||||
#opts="filenamemangle=s/.*\/v?(.*)\.tar\.gz/realtek-rtl88xxau-$1.tar.gz/" \
|
||||
#https://github.com/aircrack-ng/rtl8812au/tags .*/v?(.*)\.tar\.gz
|
||||
|
Loading…
Reference in New Issue
Block a user