Browse code

2007-04-09 Michal Ludvig <michal@logix.cz>

* Updated infrastructure files to create "better"
distribution archives.



git-svn-id: https://s3tools.svn.sourceforge.net/svnroot/s3tools/s3cmd/trunk@108 830e0280-6d2a-0410-9c65-932aecc39d9d

Michal Ludvig authored on 2007/04/08 23:33:12
Showing 6 changed files
... ...
@@ -1,6 +1,8 @@
1 1
 2007-04-09  Michal Ludvig  <michal@logix.cz>
2 2
 
3 3
 	* s3cmd.1: Added manpage
4
+	* Updated infrastructure files to create "better"
5
+	  distribution archives.
4 6
 
5 7
 2007-03-26  Michal Ludvig  <michal@logix.cz>
6 8
 
7 9
new file mode 100644
... ...
@@ -0,0 +1,2 @@
0
+include INSTALL README NEWS
1
+include s3cmd.1.gz
... ...
@@ -1,5 +1,5 @@
1 1
 package = "s3cmd"
2
-version = "0.9.1"
2
+version = "0.9.2"
3 3
 url = "http://s3tools.logix.cz"
4 4
 license = "GPL version 2"
5 5
 short_description = "S3cmd is a tool for managing Amazon S3 storage space."
... ...
@@ -274,21 +274,24 @@ if __name__ == '__main__':
274 274
 	optparser.set_defaults(config=os.getenv("HOME")+"/.s3cfg")
275 275
 	optparser.set_defaults(verbosity = default_verbosity)
276 276
 
277
+	optparser.add_option(      "--configure", dest="run_configure", action="store_true", help="Invoke interactive (re)configuration tool.")
277 278
 	optparser.add_option("-c", "--config", dest="config", metavar="FILE", help="Config file name. Defaults to %default")
278
-	optparser.add_option("-H", "--human-readable-sizes", dest="human_readable_sizes", action="store_true", help="Print sizes in human readable form.")
279
+	optparser.add_option(      "--dump-config", dest="dump_config", action="store_true", help="Dump current configuration after parsing config files and command line options and exit.")
280
+
279 281
 	optparser.add_option("-f", "--force", dest="force", action="store_true", help="Force overwrite and other dangerous operations.")
280
-	optparser.add_option("-u", "--show-uri", dest="show_uri", action="store_true", help="Show complete S3 URI in listings.")
281 282
 	optparser.add_option("-P", "--acl-public", dest="acl_public", action="store_true", help="Store objects with ACL allowing read by anyone.")
283
+
282 284
 	optparser.add_option("-m", "--mime-type", dest="default_mime_type", type="mimetype", metavar="MIME/TYPE", help="Default MIME-type to be set for objects stored.")
283 285
 	optparser.add_option("-M", "--guess-mime-type", dest="guess_mime_type", action="store_true", help="Guess MIME-type of files by their extension. Falls back to default MIME-Type as specified by --mime-type option")
284
-	optparser.add_option(      "--dump-config", dest="dump_config", action="store_true", help="Dump current configuration after parsin config files and command line options and exit.")
285
-	optparser.add_option(      "--configure", dest="run_configure", action="store_true", help="Invoke interactive (re)configuration tool.")
286
-	optparser.add_option("-d", "--debug", dest="verbosity", action="store_const", const=logging.DEBUG, help="Enable debug output.")
286
+
287
+	optparser.add_option("-H", "--human-readable-sizes", dest="human_readable_sizes", action="store_true", help="Print sizes in human readable form.")
288
+	optparser.add_option("-u", "--show-uri", dest="show_uri", action="store_true", help="Show complete S3 URI in listings.")
287 289
 	optparser.add_option("-v", "--verbose", dest="verbosity", action="store_const", const=logging.INFO, help="Enable verbose output.")
290
+	optparser.add_option("-d", "--debug", dest="verbosity", action="store_const", const=logging.DEBUG, help="Enable debug output.")
288 291
 	optparser.add_option(      "--version", dest="show_version", action="store_true", help="Show s3cmd version (%s) and exit." % (S3.PkgInfo.version))
289 292
 
290 293
 	optparser.set_usage(optparser.usage + " COMMAND [parameters]")
291
-	optparser.set_description('S3cmd is a tool to manage objects in '+
294
+	optparser.set_description('S3cmd is a tool for managing objects in '+
292 295
 		'Amazon S3 storage. It allows for making and removing '+
293 296
 		'"buckets" and uploading, downloading and removing '+
294 297
 		'"objects" from these buckets.')
... ...
@@ -1,7 +1,10 @@
1 1
 [sdist]
2 2
 formats = gztar,zip
3 3
 
4
+[install]
5
+prefix = /usr
6
+
4 7
 [bdist_rpm]
5 8
 requires = python >= 2.4
6 9
 group = Productivity/Archiving
7
-doc-files = README
10
+doc-files = README, INSTALL, NEWS
... ...
@@ -3,18 +3,28 @@ import os
3 3
 
4 4
 import S3.PkgInfo
5 5
 
6
+## Remove 'MANIFEST' file to force
7
+## distutils to recreate it
6 8
 try:
7 9
 	os.unlink("MANIFEST")
8 10
 except:
9 11
 	pass
10 12
 
13
+## Compress manpage. It behaves weird 
14
+## with bdist_rpm when not compressed.
15
+os.system("gzip s3cmd.1")
16
+
17
+## Main distutils info
11 18
 setup(
12 19
 	## Content description
13 20
 	name = S3.PkgInfo.package,
14 21
 	version = S3.PkgInfo.version,
15 22
 	packages = [ 'S3' ],
16 23
 	scripts = ['s3cmd'],
17
-	data_files = [ ("share/s3cmd", [ "README", "INSTALL", "NEWS" ]), ],
24
+	data_files = [
25
+		("share/doc/packages/s3cmd", [ "README", "INSTALL", "NEWS" ]),
26
+		("share/man/man1", [ "s3cmd.1.gz" ] ),
27
+	],
18 28
 
19 29
 	## Packaging details
20 30
 	author = "Michal Ludvig",