mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-22 17:39:53 +03:00
One can now launch the script from any location, not just debian/
This commit is contained in:
parent
358357db1e
commit
759e4789f6
7
debian/dch-generate.sh
vendored
7
debian/dch-generate.sh
vendored
@ -9,6 +9,7 @@
|
||||
# version 2 as published by the Free Software Foundation.
|
||||
|
||||
# warning: the following file has CRLF line endings (Windows)
|
||||
# the location of the following file is relative to this script
|
||||
cbuild="../src/CurrentBuild.txt"
|
||||
|
||||
# required for debian packaging
|
||||
@ -27,10 +28,12 @@ if [ -z "$DEBEMAIL" ]; then
|
||||
DEBEMAIL="tamade@example.org"
|
||||
fi
|
||||
|
||||
# check if ./changelog exists, check if $cbuild exists
|
||||
# where am i located? in $DIR, of course!
|
||||
DIR="$( cd "$( dirname "$0" )" && pwd )"
|
||||
cd "$DIR"
|
||||
# check if debian/changelog exists, check if $cbuild exists
|
||||
if [ ! -e ./changelog ]; then
|
||||
echo "Am I in debian/? I can't find changelog"
|
||||
echo "Maybe run: touch debian/changelog ?"
|
||||
exit 1
|
||||
fi
|
||||
if [ ! -e "$cbuild" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user