]> git.e2factory.org Git - e2factory.git/commitdiff
e2-root does not need to be executable, trim cleanup files
authorTobias Ulmer <tu@emlix.com>
Fri, 7 Sep 2012 09:27:27 +0000 (11:27 +0200)
committerTobias Ulmer <tu@emlix.com>
Tue, 26 Feb 2013 18:07:10 +0000 (19:07 +0100)
e2-root is called via e2, does not need to be an executable script. It's
not an entry point into e2factory.

Signed-off-by: Tobias Ulmer <tu@emlix.com>
global/Makefile

index 167579bbe629c4175190c6e7a455f511fe40b8bf..adc0ae2f51282b26654ce48b12e575e678a293d0 100644 (file)
@@ -35,7 +35,7 @@ SCRIPTS =
 GLOBALLUATOOLS = e2-create-project e2-fetch-project e2-install-e2 e2-root
 GLOBALSHTOOLS = e2-locate-project-root e2ssh
 GLOBALTOOLS = $(GLOBALLUATOOLS) $(GLOBALSHTOOLS)
-CLEAN_FILES = *~ $(GLOBALTOOLS) e2 $(SCRIPTS) *.lua e2-su *.sh e2.conf
+CLEAN_FILES = e2 e2-su e2.conf
 LUA_LIBS = strict.lua plugin.lua e2lib.lua
 LUA_LIBS += e2option.lua hash.lua tools.lua transport.lua cache.lua url.lua
 LUA_LIBS += generic_git.lua luafile.lua err.lua lock.lua
@@ -43,7 +43,7 @@ LUA_LIBS += buildconfig.lua
 
 .PHONY: all install uninstall clean
 
-all: e2 e2-root $(SCRIPTS) e2-su \
+all: e2 $(SCRIPTS) e2-su \
        $(GLOBALSHTOOLS:=.sh) e2.conf sha1.so e2-su-2.2 \
        luafile_ll.so e2util.so
 
@@ -68,7 +68,6 @@ install: all install-dirs install-lua
        for i in $(GLOBALSHTOOLS) ; do \
                install -m 755 $$i.sh $(DESTDIR)$(BINDIR)/$$i ; \
        done
-       install -m 755 e2-root $(DESTDIR)$(TOOLDIR)/
        $(SUDO) install -m 4754 -o root -g $(E2_GROUP) e2-su $(DESTDIR)$(BINDIR)/
        install -m 755 e2 $(DESTDIR)$(BINDIR)/
        if [ ! -f "$(DESTDIR)$(SYSCONFDIR)/e2.conf" ] ; then \
@@ -122,10 +121,6 @@ e2: e2.lua
        echo "#!$(LIBEXECDIR)/e2-lua-$(LUA_VERSION)" >$@
        cat $< >>$@
 
-e2-root: e2-root.lua
-       echo "#!$(LIBEXECDIR)/e2-lua-$(LUA_VERSION)" >$@
-       cat $< >>$@
-
 e2.conf: e2.conf.in
        $(TOPLEVEL)/scripts/genscript.sh $< $@