forked from SoftEtherVPN/SoftEtherVPN
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
One can now launch the script from any location, not just debian/
- Loading branch information
Showing
1 changed file
with
5 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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="[email protected]" | ||
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 | ||
|