abolish "dest", use options.prefix directly
authorPaul Crowley <paul@lshift.net>
Sun, 08 Mar 2009 15:12:43 +0000
changeset 90 03004026cbac
parent 89 30a8be7ce326
child 91 69dd70e1d844
abolish "dest", use options.prefix directly
install
--- a/install	Sun Mar 08 15:12:20 2009 +0000
+++ b/install	Sun Mar 08 15:12:43 2009 +0000
@@ -28,7 +28,6 @@
     print >>sys.stderr, "Install must be run as root user"
     sys.exit(-1)
 
-dest = options.prefix + "/lib/mercurial-server"
 
 def installFiles(d, *sources):
     d = options.root + d
@@ -36,10 +35,13 @@
     for f in sources:
         shutil.copy(f, d)
 
-installFiles(dest,
+installFiles(options.prefix + '/lib/mercurial-server',
     'src/hg-ssh',
     'src/refresh-auth')
-installFiles(dest + '/mercurialserver',
+installFiles(options.prefix + '/lib/mercurial-server',
+    'src/hg-ssh',
+    'src/refresh-auth')
+installFiles(options.prefix + '/lib/mercurial-server/mercurialserver',
     'src/mercurialserver/__init__.py',
     'src/mercurialserver/paths.py',
     'src/mercurialserver/changes.py',
@@ -47,7 +49,7 @@
     'src/mercurialserver/servelog.py',
     'src/mercurialserver/refreshauth.py',
     'src/mercurialserver/ruleset.py')
-installFiles(dest + '/init',
+installFiles(options.prefix + '/lib/mercurial-server/init',
     'src/init/hginit',
     'src/init/hgadmin-hgrc')
 installFiles('/etc/mercurial-server',