Menu

here doc - does it work?

Help
2010-07-17
2013-03-15
  • Terrence M. Brannon

    I'm pretty certain this code is correct now, the here doc part fails on the first line in the here-doc:

    $(WARES)/gist.el/gist.elc:
        cd $(WARES)  ;  git clone http://github.com/defunkt/gist.el.git 
        cd $(dir $@) ; $(BYTECOMPILE) gist.el
        perl {{
        print 'github username: ';
        my $username = <STDIN>;
        print 'github API token: ';
        my $api_token = <STDIN>;
        system "git config --global github.user $username";
        system "git config --global github.token $api_token";
        use File::Butler;
        my $line=<<EOL;
    (add-to-list 'load-path WARES)
    (require 'gist)
    EOL
        Butler( $EDAN_EL, prepend => $line );
        }}
    
     
  • Michael Lachmann

    Try to indent the lines after my$line=<<EOL;
    I think makepp needs some indention to recognize lines. It needs to be as indented as the lines before.

     

Log in to post a comment.