From a7405b2115ba873ade35ebf16ade8736548b9a99 Mon Sep 17 00:00:00 2001 From: Steven Knight Date: Fri, 18 Jul 2003 17:52:21 +0000 Subject: Add a script to print .sconsign file contents. --- HOWTO/new-script.txt | 73 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 HOWTO/new-script.txt (limited to 'HOWTO') diff --git a/HOWTO/new-script.txt b/HOWTO/new-script.txt new file mode 100644 index 00000000..8bb52228 --- /dev/null +++ b/HOWTO/new-script.txt @@ -0,0 +1,73 @@ +Steps for adding a new script/utility to the SCons packages. Assume +that you're creating a new man page, too. In the template steps +below, "newscript" is the name of the new script/utility being added. + + New files: + + doc/man/newscript.1 + + New man page; use an existing one as a template. + + src/script/newscript.py + + The new script itself. + + test/*.py + + Appropriate tests for the new script. + + Modified files: + + SConstruct + + In the "scons_script" package description: + + Add "newscript" : "newscript.py" to the "filemap" + dictionary. + + In the "scons" package description: + + Add "newscript.1" to the "files" list. + + Add "newscript.1" : "../doc/man/newscript.1" to the + "filemap" dictionary. + + Add "newscript" to the scripts[] list + + debian/rules + + Add: + + rm -f debian/scons/usr/bin/newscript + cp build/scripts/newscript debian/scons/user/bin/newscript + sed '1s|.*|#!/usr/bin/python2.1|' build/scripts/newscript > debian/scons/user/bin/newscript + chmod +x debian/scons/user/bin/newscript + + rm -f debian/scons/usr/share/man/man1/newscript.1 + cp newscript.1 debian/scons/user/share/man/man1/ + + doc/SConscript + + Add "newscript" to man_page_list[] + + gentoo/scons.ebuild.in + + Add "doman newscript.1" + + rpm/scons.spec.in + + Add "gzip -c newscript.1" > $RPM_BUILD_ROOT/usr/man/man1/newscript.1.gz + + Add "%doc /usr/man/man1/newscript.1.gz" + + src/CHANGES.txt + + Document the addition of the new script. + + src/script/MANIFEST.in + + Add a line: "newscript" + + src/setup.py + + Add "script/newscript" to the 'scripts' list. -- cgit v1.2.1