ifnot params.observe_only: params.updateFromServer(server) params.updateToServer(server) cmdline = params.parseActions() ifnot cmdline: print("Nothing to do. Use 'bitbake world' to build everything, or run 'bitbake --help' for usage information.") return1 if'msg'in cmdline and cmdline['msg']: logger.error(cmdline['msg']) return1
ret, error = server.runCommand(cmdline['action']) if error: logger.error("Command '%s' failed: %s" % (cmdline, error)) return1 elif ret != True: logger.error("Command '%s' failed: returned %s" % (cmdline, ret)) return1
(blog)[root@localhost waaagh]# pelican-quickstart Welcome to pelican-quickstart v3.5.0. This script will help you create a new Pelican-based website. Please answer the following questions so this script can generate the files needed by Pelican. > Where do you want to create your new web site? [.] . > What will be the title of this web site? waaagh!!! > Who will be the author of this web site? lichaoran > What will be the default language of this web site? [en] zh > Do you want to specify a URL prefix? e.g., http://example.com (Y/n) yes > Do you want to specify a URL prefix? e.g., http://example.com (Y/n) yes > What is your URL prefix? (see above example; no trailing slash) pkking > Do you want to enable article pagination? (Y/n) y How many articles per page do you want? [10] ▽ Do you want to generate a Fabfile/Makefile to automate generation and publishing? (Y/n) y > Do you want an auto-reload & simpleHTTP script to assist with theme and site development? (Y/n) y > Do you want to upload your website using FTP? (y/N) n > Do you want to upload your website using SSH? (y/N) y > What is the hostname of your SSH server? [localhost] > What is the port of your SSH server? [22] > What is your username on that server? [root] pkking > Where do you want to put your web site on that server? [/var/www] > Do you want to upload your website using Dropbox? (y/N) n > Do you want to upload your website using S3? (y/N) n > Do you want to upload your website using Rackspace Cloud Files? (y/N) n > Do you want to upload your website using GitHub Pages? (y/N) y > Is this your personal page (username.github.io)? (y/N) Done. Your new project is available at /root/blog/blog
完成后,目录结构如下:
yourproject/
├── content
│ └── (pages)
├── output
├── develop_server.sh
├── fabfile.py
├── Makefile
├── pelicanconf.py # Main settings file
└── publishconf.py # Settings to use when ready to publish