Skip to content
Snippets Groups Projects
Commit d111a2e7 authored by Simon McVittie's avatar Simon McVittie
Browse files

build-relocatable-install: Don't redirect srcdir into DESTDIR if not there


This enables us to use --srcdir=$(pwd) when running from a git checkout.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent 97d6b499
No related branches found
No related tags found
No related merge requests found
......@@ -220,7 +220,9 @@ def main():
if args.destdir:
args.prefix = args.destdir + args.prefix
args.srcdir = args.destdir + args.srcdir
if os.path.exists(args.destdir + args.srcdir):
args.srcdir = args.destdir + args.srcdir
if args.archive is None and args.output is None:
parser.error('Either --archive or --output is required')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment