Changes
Jump to navigation
Jump to search
← Older edit
Makefile
(edit)
Revision as of 19:03, 4 April 2018
482 bytes added
,
19:03, 4 April 2018
no edit summary
Line 3:
Line 3:
http://www.gnu.org/software/make/manual/make.html<br />
http://www.gnu.org/software/make/manual/make.html<br />
http://www.schacherer.de/frank/technology/tools/make.html#example<br />
http://www.schacherer.de/frank/technology/tools/make.html#example<br />
+
+
+
<nowiki>TENKAICHI_USER := $(shell getent passwd tenkaichi)
+
CWD := $(shell pwd)
+
#LOGS_DIR := $(shell [ -e /tenkaichi/logs/ ] && echo 1 || echo 0 ))
+
+
define create_user
+
$(info Creating tenkaichi user & group)
+
$(shell useradd --home-dir /tenkaichi --user-group --password $1$XZ3glFTm$310GteJW3A8/JBLT9pbQl/ tenkaichi);
+
$(shell mkhomedir_helper tenkaichi);
+
endef
+
+
+
install:
+
ifeq ($(TENKAICHI_USER),)
+
$(call create_user)
+
endif
+
cp -r $(CWD) /tenkaichi
+
</nowiki>
Rafahsolis
Bureaucrats
,
Administrators
2,306
edits
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
Variants
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Special pages
Printable version