mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
Make sure Ubuntu package built script is started from the right directory
I kept starting it from within the subsurface directory which of course failed but left clutter around. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
589f277477
commit
fabdb6b65c
1 changed files with 6 additions and 0 deletions
|
@ -1,5 +1,11 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# start from the directory above the combined subsurface & subsurface/libdivecomputer directory
|
# start from the directory above the combined subsurface & subsurface/libdivecomputer directory
|
||||||
|
if [[ $(pwd | grep "subsurface$") || ! -d subsurface || ! -d subsurface/libdivecomputer || ! -d subsurface/libgit2 ]] ; then
|
||||||
|
echo "Please start this script from the folder ABOVE the subsurface source directory"
|
||||||
|
echo "which includes libdivecomputer and libgit2 as subdirectories)."
|
||||||
|
exit 1;
|
||||||
|
fi
|
||||||
|
|
||||||
VERSION=$(cd subsurface ; git describe | sed -e 's/-g.*$// ; s/^v// ; s/-/./')
|
VERSION=$(cd subsurface ; git describe | sed -e 's/-g.*$// ; s/^v// ; s/-/./')
|
||||||
echo "building Subsurface" $VERSION
|
echo "building Subsurface" $VERSION
|
||||||
if [[ -d subsurface_$VERSION ]]; then
|
if [[ -d subsurface_$VERSION ]]; then
|
||||||
|
|
Loading…
Add table
Reference in a new issue