Skip to content
Snippets Groups Projects
Commit 94f3875d authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

Generate devel/upload during build time from template

- Use variable with prefix instead of grep and sed
- Always run with /bin/bash

Reviewed-by: ultrotter
parent 4337cf1b
No related branches found
No related tags found
No related merge requests found
ACLOCAL_AMFLAGS = -I autotools
SUBDIRS = man lib scripts daemons doc test tools qa
SUBDIRS = man lib scripts daemons doc test tools qa devel
EXTRA_DIST = NEWS DEVNOTES
.PHONY: ganeti
......
......@@ -114,6 +114,7 @@ fi
AC_CONFIG_FILES([
Makefile
daemons/Makefile
devel/Makefile
doc/Makefile
doc/examples/Makefile
lib/Makefile
......
EXTRA_DIST = upload.in
CLEANFILES = upload
all-local: upload
upload: upload.in
sed \
-e 's#@PREFIX@#$(prefix)#g' \
< $< > $@
chmod u+x $@
#!/bin/sh
#!/bin/bash
# Copyright (C) 2006, 2007 Google Inc.
#
......@@ -38,7 +38,7 @@ echo ---
echo ---
PREFIX=$(cat Makefile | grep '^prefix' | sed -e 's/.*= //')
PREFIX='@PREFIX@'
# and now put it under $prefix on the target node(s)
for host; do
......
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