- Use variable with prefix instead of grep and sed
- Always run with /bin/bash
Reviewed-by: ultrotter
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
AC_CONFIG_FILES([
Makefile
daemons/Makefile
+ devel/Makefile
doc/Makefile
doc/examples/Makefile
lib/Makefile
--- /dev/null
+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.
#
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