1. Duangle
  2. Untitled project
  3. pysdl-cffi

Commits

Duangle  committed a5452eb

sdl: no specific revision

  • Participants
  • Parent commits 92455a7
  • Branches default

Comments (0)

Files changed (1)

File utils/mksdl.py

View file
 import shutil
 
 SOURCE = "http://hg.libsdl.org/SDL"
-REVISION = "a91717ac8ff1"
+#REVISION = "a91717ac8ff1"
+REVISION = None
 THISDIR = os.path.abspath(os.path.dirname(__file__))
 basedir = os.path.abspath(os.path.join(THISDIR, '..'))
 bindir = os.path.abspath(os.path.join(basedir, 'sdl-bin'))
         unpack_contents(args.archive, targetdir)
     else:
         if not os.path.isdir(targetdir):
-            cmd = 'hg clone -r {0} {1} {2}'.format(
-                REVISION, SOURCE, targetdir)
+            if REVISION:
+                cmd = 'hg clone -r {0} {1} {2}'.format(
+                    REVISION, SOURCE, targetdir)
+            else:
+                cmd = 'hg clone {} {}'.format(
+                    SOURCE, targetdir)
             print(cmd)
             if os.system(cmd):
                 print("failed :(")