Update of /cvsroot/mailman/mailman/bin
In directory usw-pr-cvs1:/tmp/cvs-serv1736/bin
Modified Files:
Makefile.in convert.py fix_url.py
Log Message:
Make convert.py and fix_url.py full-fledged scripts. They're still
intended to be run under bin/withlist, so when run standalone, they
print their module documentation (usage information).
Index: Makefile.in
===================================================================
RCS file: /cvsroot/mailman/mailman/bin/Makefile.in,v
retrieving revision 2.14
retrieving revision 2.15
diff -C2 -d -r2.14 -r2.15
*** Makefile.in 17 Mar 2002 04:36:13 -0000 2.14
--- Makefile.in 1 Apr 2002 14:51:00 -0000 2.15
***************
*** 47,53 ****
version config_list list_lists dumpdb cleanarch \
list_admins genaliases change_pw mailmanctl qrunner inject \
! unshunt
! NONSCRIPTS= fix_url.py convert.py
BUILDDIR= ../build/bin
--- 47,53 ----
version config_list list_lists dumpdb cleanarch \
list_admins genaliases change_pw mailmanctl qrunner inject \
! unshunt fix_url.py convert.py
! NONSCRIPTS=
BUILDDIR= ../build/bin
***************
*** 71,75 ****
$(INSTALL) -m $(EXEMODE) $(BUILDDIR)/$$f $(SCRIPTSDIR); \
done
-
for f in $(NONSCRIPTS); \
do \
--- 71,74 ----
Index: convert.py
===================================================================
RCS file: /cvsroot/mailman/mailman/bin/convert.py,v
retrieving revision 2.0
retrieving revision 2.1
diff -C2 -d -r2.0 -r2.1
*** convert.py 23 Feb 2002 06:36:02 -0000 2.0
--- convert.py 1 Apr 2002 14:51:00 -0000 2.1
***************
*** 1,2 ****
--- 1,4 ----
+ #! @PYTHON@
+ #
# Copyright (C) 2002 by the Free Software Foundation, Inc.
#
***************
*** 22,25 ****
--- 24,28 ----
"""
+ import paths
from Mailman import Utils
from Mailman.i18n import _
***************
*** 35,36 ****
--- 38,44 ----
print _('Saving list')
mlist.Save()
+
+
+
+ if __name__ == '__main__':
+ print _(__doc__.replace('%', '%%'))
Index: fix_url.py
===================================================================
RCS file: /cvsroot/mailman/mailman/bin/fix_url.py,v
retrieving revision 2.2
retrieving revision 2.3
diff -C2 -d -r2.2 -r2.3
*** fix_url.py 16 Mar 2002 06:57:37 -0000 2.2
--- fix_url.py 1 Apr 2002 14:51:00 -0000 2.3
***************
*** 1,2 ****
--- 1,4 ----
+ #! @PYTHON@
+ #
# Copyright (C) 2001,2002 by the Free Software Foundation, Inc.
#
***************
*** 22,25 ****
--- 24,28 ----
"""
+ import paths
from Mailman import mm_cfg
from Mailman.i18n import _
***************
*** 31,32 ****
--- 34,40 ----
print _('Saving list')
mlist.Save()
+
+
+
+ if __name__ == '__main__':
+ print _(__doc__.replace('%', '%%'))
_______________________________________________
Mailman-checkins mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-checkins