rdb 17 年之前
父节点
当前提交
f2195f54af
共有 2 个文件被更改,包括 7 次插入7 次删除
  1. 5 5
      doc/makepanda/makepanda.py
  2. 2 2
      doc/makepanda/makepandacore.py

+ 5 - 5
doc/makepanda/makepanda.py

@@ -547,9 +547,9 @@ def CompileImod(wobj, wsrc, opts):
         CompileCxx(wobj,woutc,opts)
         return
     if (COMPILER=="MSVC"):
-	woutc = wobj[:-4]+".cxx"
+        woutc = wobj[:-4]+".cxx"
     if (COMPILER=="LINUX"):
-	woutc = wobj[:-2]+".cxx"
+        woutc = wobj[:-2]+".cxx"
     cmd = 'built/bin/interrogate_module '
     cmd = cmd + ' -oc ' + woutc + ' -module ' + module + ' -library ' + library + ' -python-native '
     for x in wsrc: cmd = cmd + ' ' + x
@@ -3585,9 +3585,9 @@ def MakeInstallerLinux():
         oscmd("cd linuxroot ; (find etc -type f -exec md5sum {} \;) >> DEBIAN/md5sums")
         WriteFile("linuxroot/DEBIAN/conffiles","/etc/Config.prc\n")
         WriteFile("linuxroot/DEBIAN/control",txt)
-	WriteFile("linuxroot/DEBIAN/postinst","#!/bin/sh\necho running ldconfig\nldconfig\n")
-	oscmd("chmod 755 linuxroot/DEBIAN/postinst")
-	oscmd("cp linuxroot/DEBIAN/postinst linuxroot/DEBIAN/postrm")
+        WriteFile("linuxroot/DEBIAN/postinst","#!/bin/sh\necho running ldconfig\nldconfig\n")
+        oscmd("chmod 755 linuxroot/DEBIAN/postinst")
+        oscmd("cp linuxroot/DEBIAN/postinst linuxroot/DEBIAN/postrm")
         oscmd("dpkg-deb -b linuxroot panda3d_"+VERSION+"_"+ARCH+".deb")
         oscmd("chmod -R 755 linuxroot")
 

+ 2 - 2
doc/makepanda/makepandacore.py

@@ -725,10 +725,10 @@ def SdkLocateMSPlatform():
     platsdk=GetRegistryKey("SOFTWARE\\Microsoft\\MicrosoftSDK\\InstalledSDKs\\D2FF9F89-8AA2-4373-8A31-C838BF4DBBE1", "Install Dir")
     if (platsdk == 0):
         platsdk=GetRegistryKey("SOFTWARE\\Microsoft\\Microsoft SDKs\\Windows\\v6.1","InstallationFolder")
-		
+    
     if (platsdk == 0 and os.path.isdir("C:\\Program Files\\Microsoft Visual Studio 8\\VC\\PlatformSDK")):
       platsdk = "C:\\Program Files\\Microsoft Visual Studio 8\\VC\\PlatformSDK\\"
-		
+    
     if (platsdk != 0):
         SDK["MSPLATFORM"] = platsdk