RCS file: RCS/distcc-config.py,v Working file: distcc-config.py head: 1.2 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 2; selected revisions: 2 description: lisa's distcc-config python script http://bugs.gentoo.org/show_bug.cgi?id=27432. ---------------------------- revision 1.2 date: 2003/09/11 13:08:23; author: root; state: Exp; lines: +4 -2 Append newline to /etc/distcc/hosts. Additional Usage entries, pointer to the distcc guide, upper case U in usage as it's traditional that way. ---------------------------- revision 1.1 date: 2003/09/11 11:41:51; author: root; state: Exp; Initial revision ============================================================================= --- distcc-config.py 2003/09/11 11:41:51 1.1 +++ distcc-config.py 2003/09/11 13:10:42 @@ -80,7 +80,7 @@ print 'Current DISTCC_HOSTS:',open('/etc/distcc/hosts', 'r').read() elif '--set-hosts' in tmpcmdline: isroot() - open('/etc/distcc/hosts', 'w').write(cmdline) + open('/etc/distcc/hosts', 'w').write(cmdline + '\n') print 'Set DISTCC_HOSTS to:',cmdline elif '--get-verbose' in tmpcmdline: readenv('DISTCC_VERBOSE') @@ -116,6 +116,8 @@ permissions('/var/run/distccd/',user,group) else: - print 'usage: /usr/bin/distcc-config --set-hosts DISTCC_HOSTS | --get-hosts' + print 'Usage: /usr/bin/distcc-config --set-hosts DISTCC_HOSTS | --get-hosts' print ' /usr/bin/distcc-config --set-verbose { 0 | 1 } | --get-verbose' print ' /usr/bin/distcc-config --set-log FILE | --get-log' + print ' /usr/bin/distcc-config --install' + print 'See the Gentoo distcc Guide at http://www.gentoo.org/doc/en/distcc.xml for further information.'