Commit dbd36e65 authored by Leigh Stoller's avatar Leigh Stoller

Remove webxxx.in files since they are all the same.

* New rule:

	web%: $(TESTBED_SRCDIR)/WEBtemplate.in
		@echo "Generating $@"
		cat $< | sed -e 's,@PROGTOINVOKE@,$(word 2,$^),' > $@

* New target in the makefiles:

	$(LIBEXEC_STUFF): web%: $(INSTALL_SBINDIR)/%

  the above rule is good in a makefile like account/GNUmakefile where all
  of the programs are installed to the same place. In the larger makefiles,
  might need to split the above rule up a bit:

        webnewuser: web%: $(INSTALL_SBINDIR)/%
        webfoobar: web%: $(INSTALL_BINDIR)/%

* All of the webXXX.in files will be removed ...
parent a477bc5d
......@@ -48,6 +48,14 @@ post-install:
control-install: $(addprefix $(INSTALL_SBINDIR)/, $(SBIN_STUFF))
# This rule says what web* script depends on which installed binary.
$(LIBEXEC_STUFF): web%: $(INSTALL_SBINDIR)/%
# And then how to turn the template into the actual script.
web%: $(TESTBED_SRCDIR)/WEBtemplate.in
@echo "Generating $@"
cat $< | sed -e 's,@PROGTOINVOKE@,$(word 2,$^),' > $@
clean:
rm -f *.o core
#!/usr/bin/perl -w
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2003 University of Utah and the Flux Group.
# All rights reserved.
#
use English;
#
# This gets invoked from the Web interface. Simply a wrapper ...
#
#
# Configure variables
#
my $TB = "@prefix@";
#
# Run the real thing, and never return.
#
exec "$TB/sbin/addpubkey", @ARGV;
die("webaddpubkey: Could not exec addpubkey: $!");
#!/usr/bin/perl -w
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2003 University of Utah and the Flux Group.
# All rights reserved.
#
use English;
#
# This gets invoked from the Web interface. Simply a wrapper ...
#
#
# Configure variables
#
my $TB = "@prefix@";
#
# Run the real thing, and never return.
#
exec "$TB/sbin/addsfskey", @ARGV;
die("webmkacct: Could not exec addsfskey: $!");
#!/usr/bin/perl -w
#
# EMULAB-COPYRIGHT
# Copyright (c) 2004 University of Utah and the Flux Group.
# All rights reserved.
#
use English;
#
# This gets invoked from the Web interface. Simply a wrapper ...
#
#
# Configure variables
#
my $TB = "@prefix@";
#
# Run the real thing, and never return.
#
exec "$TB/sbin/mkusercert", @ARGV;
die("webmkusercert: Could not exec mkusercert: $!");
#!/usr/bin/perl -w
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2003 University of Utah and the Flux Group.
# All rights reserved.
#
use English;
#
# This gets invoked from the Web interface. Simply a wrapper ...
#
#
# Configure variables
#
my $TB = "@prefix@";
#
# Run the real thing, and never return.
#
exec "$TB/sbin/tbacct", @ARGV;
die("webmkacct: Could not exec tbacct: $!");
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment