[gnue] r9868 - trunk/gnue-appserver

[email protected]
Newsgroups gmane.comp.cms.gnue.cvs
Message-ID <[email protected]>
Author: kilo
Date: 2008-03-28 06:01:04 -0500 (Fri, 28 Mar 2008)
New Revision: 9868

Modified:
   trunk/gnue-appserver/setup.py
Log:
Don't install non-platform sample files.

Modified: trunk/gnue-appserver/setup.py
===================================================================
--- trunk/gnue-appserver/setup.py	2008-03-27 08:03:45 UTC (rev 9867)
+++ trunk/gnue-appserver/setup.py	2008-03-28 11:01:04 UTC (rev 9868)
@@ -45,7 +45,7 @@
   # ---------------------------------------------------------------------------
 
   def set_params (self, params):
-  
+
     # The Work
     params ["name"]             = PACKAGE.lower ()
     params ["version"]          = VERSION
@@ -63,7 +63,7 @@
       platscripts = ["scripts/gnue-setupdb.bat"]
     else:
       platscripts = ["scripts/gnue-setupdb", "scripts/gnue-gcd2html"]
-      
+
     params ["package_dir"] = {"gnue.appserver": "src"}
     params ["scripts"]     =  platscripts + [
                               "scripts/gnue-appserver",
@@ -82,6 +82,11 @@
                    "doc/api/api.txt",
                    "doc/devguide/devguide.txt"]
     samplefiles = self.allfiles ("samples")
+    # Get rid of non-platform sample files
+    if sys.platform == 'win32':
+      samplefiles.remove("samples/setup-db.sh")
+    else:
+      samplefiles.remove("samples/setup-db.bat")
 
     params ["data_files"] = \
       [("share/gnue/appserver",                    datafiles),
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.