Tabs in makefile
This commit is contained in:
parent
46a69a33e2
commit
35d2146df0
|
@ -97,50 +97,50 @@ function create_pelican_makefile {
|
||||||
echo '' >> $STATIC_BLOG_FILE
|
echo '' >> $STATIC_BLOG_FILE
|
||||||
echo 'DEBUG ?= 0' >> $STATIC_BLOG_FILE
|
echo 'DEBUG ?= 0' >> $STATIC_BLOG_FILE
|
||||||
echo 'ifeq ($(DEBUG), 1)' >> $STATIC_BLOG_FILE
|
echo 'ifeq ($(DEBUG), 1)' >> $STATIC_BLOG_FILE
|
||||||
echo ' PELICANOPTS += -D' >> $STATIC_BLOG_FILE
|
echo -e '\tPELICANOPTS += -D' >> $STATIC_BLOG_FILE
|
||||||
echo 'endif' >> $STATIC_BLOG_FILE
|
echo 'endif' >> $STATIC_BLOG_FILE
|
||||||
echo '' >> $STATIC_BLOG_FILE
|
echo '' >> $STATIC_BLOG_FILE
|
||||||
echo 'RELATIVE ?= 0' >> $STATIC_BLOG_FILE
|
echo 'RELATIVE ?= 0' >> $STATIC_BLOG_FILE
|
||||||
echo 'ifeq ($(RELATIVE), 1)' >> $STATIC_BLOG_FILE
|
echo 'ifeq ($(RELATIVE), 1)' >> $STATIC_BLOG_FILE
|
||||||
echo ' PELICANOPTS += --relative-urls' >> $STATIC_BLOG_FILE
|
echo -e '\tPELICANOPTS += --relative-urls' >> $STATIC_BLOG_FILE
|
||||||
echo 'endif' >> $STATIC_BLOG_FILE
|
echo 'endif' >> $STATIC_BLOG_FILE
|
||||||
echo '' >> $STATIC_BLOG_FILE
|
echo '' >> $STATIC_BLOG_FILE
|
||||||
echo 'html:' >> $STATIC_BLOG_FILE
|
echo 'html:' >> $STATIC_BLOG_FILE
|
||||||
echo ' $(PELICAN) $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS)' >> $STATIC_BLOG_FILE
|
echo -e '\t$(PELICAN) $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS)' >> $STATIC_BLOG_FILE
|
||||||
echo '' >> $STATIC_BLOG_FILE
|
echo '' >> $STATIC_BLOG_FILE
|
||||||
echo 'clean:' >> $STATIC_BLOG_FILE
|
echo 'clean:' >> $STATIC_BLOG_FILE
|
||||||
echo ' [ ! -d $(OUTPUTDIR) ] || rm -rf $(OUTPUTDIR)' >> $STATIC_BLOG_FILE
|
echo -e '\t[ ! -d $(OUTPUTDIR) ] || rm -rf $(OUTPUTDIR)' >> $STATIC_BLOG_FILE
|
||||||
echo '' >> $STATIC_BLOG_FILE
|
echo '' >> $STATIC_BLOG_FILE
|
||||||
echo 'regenerate:' >> $STATIC_BLOG_FILE
|
echo 'regenerate:' >> $STATIC_BLOG_FILE
|
||||||
echo ' $(PELICAN) -r $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS)' >> $STATIC_BLOG_FILE
|
echo -e '\t$(PELICAN) -r $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS)' >> $STATIC_BLOG_FILE
|
||||||
echo '' >> $STATIC_BLOG_FILE
|
echo '' >> $STATIC_BLOG_FILE
|
||||||
echo 'serve:' >> $STATIC_BLOG_FILE
|
echo 'serve:' >> $STATIC_BLOG_FILE
|
||||||
echo 'ifdef PORT' >> $STATIC_BLOG_FILE
|
echo 'ifdef PORT' >> $STATIC_BLOG_FILE
|
||||||
echo ' cd $(OUTPUTDIR) && $(PY) -m pelican.server $(PORT)' >> $STATIC_BLOG_FILE
|
echo -e '\tcd $(OUTPUTDIR) && $(PY) -m pelican.server $(PORT)' >> $STATIC_BLOG_FILE
|
||||||
echo 'else' >> $STATIC_BLOG_FILE
|
echo 'else' >> $STATIC_BLOG_FILE
|
||||||
echo ' cd $(OUTPUTDIR) && $(PY) -m pelican.server' >> $STATIC_BLOG_FILE
|
echo -e '\tcd $(OUTPUTDIR) && $(PY) -m pelican.server' >> $STATIC_BLOG_FILE
|
||||||
echo 'endif' >> $STATIC_BLOG_FILE
|
echo 'endif' >> $STATIC_BLOG_FILE
|
||||||
echo '' >> $STATIC_BLOG_FILE
|
echo '' >> $STATIC_BLOG_FILE
|
||||||
echo 'serve-global:' >> $STATIC_BLOG_FILE
|
echo 'serve-global:' >> $STATIC_BLOG_FILE
|
||||||
echo 'ifdef SERVER' >> $STATIC_BLOG_FILE
|
echo 'ifdef SERVER' >> $STATIC_BLOG_FILE
|
||||||
echo ' cd $(OUTPUTDIR) && $(PY) -m pelican.server 80 $(SERVER)' >> $STATIC_BLOG_FILE
|
echo -e '\tcd $(OUTPUTDIR) && $(PY) -m pelican.server 80 $(SERVER)' >> $STATIC_BLOG_FILE
|
||||||
echo 'else' >> $STATIC_BLOG_FILE
|
echo 'else' >> $STATIC_BLOG_FILE
|
||||||
echo ' cd $(OUTPUTDIR) && $(PY) -m pelican.server 80 0.0.0.0' >> $STATIC_BLOG_FILE
|
echo -e '\tcd $(OUTPUTDIR) && $(PY) -m pelican.server 80 0.0.0.0' >> $STATIC_BLOG_FILE
|
||||||
echo 'endif' >> $STATIC_BLOG_FILE
|
echo 'endif' >> $STATIC_BLOG_FILE
|
||||||
echo '' >> $STATIC_BLOG_FILE
|
echo '' >> $STATIC_BLOG_FILE
|
||||||
echo 'devserver:' >> $STATIC_BLOG_FILE
|
echo 'devserver:' >> $STATIC_BLOG_FILE
|
||||||
echo 'ifdef PORT' >> $STATIC_BLOG_FILE
|
echo 'ifdef PORT' >> $STATIC_BLOG_FILE
|
||||||
echo ' $(BASEDIR)/develop_server.sh restart $(PORT)' >> $STATIC_BLOG_FILE
|
echo -e '\t$(BASEDIR)/develop_server.sh restart $(PORT)' >> $STATIC_BLOG_FILE
|
||||||
echo 'else' >> $STATIC_BLOG_FILE
|
echo 'else' >> $STATIC_BLOG_FILE
|
||||||
echo ' $(BASEDIR)/develop_server.sh restart' >> $STATIC_BLOG_FILE
|
echo -e '\t$(BASEDIR)/develop_server.sh restart' >> $STATIC_BLOG_FILE
|
||||||
echo 'endif' >> $STATIC_BLOG_FILE
|
echo 'endif' >> $STATIC_BLOG_FILE
|
||||||
echo '' >> $STATIC_BLOG_FILE
|
echo '' >> $STATIC_BLOG_FILE
|
||||||
echo 'stopserver:' >> $STATIC_BLOG_FILE
|
echo 'stopserver:' >> $STATIC_BLOG_FILE
|
||||||
echo ' $(BASEDIR)/develop_server.sh stop' >> $STATIC_BLOG_FILE
|
echo -e '\t$(BASEDIR)/develop_server.sh stop' >> $STATIC_BLOG_FILE
|
||||||
echo ' @echo "Stopped Pelican and SimpleHTTPServer processes running in background."' >> $STATIC_BLOG_FILE
|
echo -e '\t@echo "Stopped Pelican and SimpleHTTPServer processes running in background."' >> $STATIC_BLOG_FILE
|
||||||
echo '' >> $STATIC_BLOG_FILE
|
echo '' >> $STATIC_BLOG_FILE
|
||||||
echo 'publish:' >> $STATIC_BLOG_FILE
|
echo 'publish:' >> $STATIC_BLOG_FILE
|
||||||
echo ' $(PELICAN) $(INPUTDIR) -o $(OUTPUTDIR) -s $(PUBLISHCONF) $(PELICANOPTS)' >> $STATIC_BLOG_FILE
|
echo -e '\t$(PELICAN) $(INPUTDIR) -o $(OUTPUTDIR) -s $(PUBLISHCONF) $(PELICANOPTS)' >> $STATIC_BLOG_FILE
|
||||||
echo '' >> $STATIC_BLOG_FILE
|
echo '' >> $STATIC_BLOG_FILE
|
||||||
echo '.PHONY: html clean regenerate serve serve-global devserver publish' >> $STATIC_BLOG_FILE
|
echo '.PHONY: html clean regenerate serve serve-global devserver publish' >> $STATIC_BLOG_FILE
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue