aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2012-06-11 13:56:12 +0200
committermarha <marha@users.sourceforge.net>2012-06-11 13:56:12 +0200
commit567cbd4acc1e35ae40d99b24bb321d97632399db (patch)
treee60e809194cdb42720208de4b76f935f955a9107
parent080d1527a5358dd66ac927acbe0ec61cba7aa7e1 (diff)
downloadvcxsrv-567cbd4acc1e35ae40d99b24bb321d97632399db.tar.gz
vcxsrv-567cbd4acc1e35ae40d99b24bb321d97632399db.tar.bz2
vcxsrv-567cbd4acc1e35ae40d99b24bb321d97632399db.zip
Fixed some minor mistakes in sync scripts
-rw-r--r--sync.bat38
-rw-r--r--synchronise.py18
2 files changed, 30 insertions, 26 deletions
diff --git a/sync.bat b/sync.bat
index dbb530086..4cdcf4fe0 100644
--- a/sync.bat
+++ b/sync.bat
@@ -1,21 +1,21 @@
-synchronise xserver ..\released\xorg-server --skip-dir=fonts.src --skip-dir=bitmaps --skip-dir=xkeyboard-config
-synchronise libxcb ..\released\libxcb
-synchronise xkeyboard-config ..\released\xorg-server\xkeyboard-config
-synchronise libX11 ..\released\libX11
-synchronise libXdmcp ..\released\libXdmcp
-synchronise libXext ..\released\libXext
-synchronise libfontenc ..\released\libfontenc
-synchronise libXinerama ..\released\libXinerama
-synchronise libXau ..\released\libXau
-synchronise xkbcomp ..\released\xkbcomp
-synchronise pixman ..\released\pixman
+synchronise -e xserver ..\released\xorg-server --skip-dir=fonts.src --skip-dir=bitmaps --skip-dir=xkeyboard-config
+synchronise -e libxcb ..\released\libxcb
+synchronise -e xkeyboard-config ..\released\xorg-server\xkeyboard-config
+synchronise -e libX11 ..\released\libX11
+synchronise -e libXdmcp ..\released\libXdmcp
+synchronise -e libXext ..\released\libXext
+synchronise -e libfontenc ..\released\libfontenc
+synchronise -e libXinerama ..\released\libXinerama
+synchronise -e libXau ..\released\libXau
+synchronise -e xkbcomp ..\released\xkbcomp
+synchronise -e pixman ..\released\pixman
synchronise xextproto ..\released\X11\extensions --skip-dir=specs --skip-file=COPYING --skip-file=docbook.am --skip-file=autogen.sh --skip-file=configure.ac --skip-file=Makefile.am --skip-file=README --skip-file=.gitignore
synchronise randrproto ..\released\X11\extensions --skip-file=autogen.sh --skip-file=configure.ac --skip-file=COPYING --skip-file=Makefile.am --skip-file=README --skip-file=.gitignore
-synchronise glproto ..\released\gl
-synchronise mkfontscale ..\released\mkfontscale
-synchronise xwininfo ..\released\apps\xwininfo
-synchronise fontconfig ..\released\fontconfig
-synchronise libXft ..\released\libXft
-synchronise libXmu ..\released\libXmu
-synchronise libxtrans ..\released\X11\xtrans
-synchronise mesa ..\released\mesalib --skip-dir=tests --skip-dir=gtest --skip-dir=x86-64 --skip-dir=tnl_dd --skip-dir=sparc --skip-dir=tools --skip-dir=libdricore --skip-dir=x11 --skip-dir=osmesa --skip-dir=radeon --skip-dir=r200 --skip-dir=nouveau --skip-dir=intel --skip-dir=i965 --skip-dir=i915 --skip-dir=vgapi --skip-dir=shared-glapi --skip-dir=es1api --skip-dir=es2api --skip-dir=gtest --skip-dir=glx --skip-dir=builtins --skip-dir=vl --skip-dir=gallium\docs --skip-dir=gallium\drivers --skip-dir=gallium\include --skip-dir=gallium\state_trackers --skip-dir=gallium\targets --skip-dir=gallium\winsys --skip-dir=gbm --skip-dir=getopt --skip-dir=egl --skip-dir=cso_cache --skip-dir=target-helpers --skip-dir=tgsi --skip-dir=translate --skip-dir=rtasm --skip-dir=pipebuffer --skip-dir=postprocess --skip-dir=rbug --skip-dir=pipe-loader --skip-dir=os --skip-dir=indices --skip-dir=gallivm --skip-dir=draw --skip-dir=pci_ids --skip-dir=doxygen --skip-dir=OLD --skip-dir=CL --skip-dir=c99
+synchronise -e glproto ..\released\gl
+synchronise -e mkfontscale ..\released\mkfontscale
+synchronise -e xwininfo ..\released\apps\xwininfo
+synchronise -e fontconfig ..\released\fontconfig
+synchronise -e libXft ..\released\libXft
+synchronise -e libXmu ..\released\libXmu
+synchronise -e libxtrans ..\released\X11\xtrans
+synchronise -e mesa ..\released\mesalib --skip-dir=tests --skip-dir=gtest --skip-dir=x86-64 --skip-dir=tnl_dd --skip-dir=sparc --skip-dir=tools --skip-dir=libdricore --skip-dir=x11 --skip-dir=osmesa --skip-dir=radeon --skip-dir=r200 --skip-dir=nouveau --skip-dir=intel --skip-dir=i965 --skip-dir=i915 --skip-dir=vgapi --skip-dir=shared-glapi --skip-dir=es1api --skip-dir=es2api --skip-dir=gtest --skip-dir=glx --skip-dir=builtins --skip-dir=vl --skip-dir=gallium\docs --skip-dir=gallium\drivers --skip-dir=gallium\include --skip-dir=gallium\state_trackers --skip-dir=gallium\targets --skip-dir=gallium\winsys --skip-dir=gbm --skip-dir=getopt --skip-dir=egl --skip-dir=cso_cache --skip-dir=target-helpers --skip-dir=tgsi --skip-dir=translate --skip-dir=rtasm --skip-dir=pipebuffer --skip-dir=postprocess --skip-dir=rbug --skip-dir=pipe-loader --skip-dir=os --skip-dir=indices --skip-dir=gallivm --skip-dir=draw --skip-dir=pci_ids --skip-dir=doxygen --skip-dir=OLD --skip-dir=CL --skip-dir=c99
diff --git a/synchronise.py b/synchronise.py
index 305583bd8..66d6ad581 100644
--- a/synchronise.py
+++ b/synchronise.py
@@ -49,8 +49,8 @@ g_NoSkipGit=g_Options.NoSkipGit
g_WriteMask=stat.S_IWUSR|stat.S_IWGRP|stat.S_IWOTH
-SrcDir=g_Args[0]
-DestDir=g_Args[1]
+g_SrcDir=os.path.realpath(g_Args[0])
+g_DestDir=os.path.realpath(g_Args[1])
if g_Options.Extension:
g_Extre=re.compile('.*\.%s$'%g_Options.Extension,re.I)
@@ -58,10 +58,14 @@ else:
g_Extre=None
###############################################################################
+g_LenSrcDir=len(g_SrcDir)
+if g_SrcDir[-1]!=os.path.sep:
+ g_LenSrcDir+=1
+
def SkipDir(SrcDir,File):
Ret = g_DirsToSkip.has_key(File)
- if SrcDir[1]==':':
- SrcDir=SrcDir[3:]
+ SrcDir=SrcDir[g_LenSrcDir:]
+
while not Ret and SrcDir:
SrcDir,Part=os.path.split(SrcDir)
File=os.path.join(Part,File)
@@ -102,8 +106,8 @@ def PrintBusy():
sys.stdout.write(chr(8)*len(item))
###############################################################################
-if not os.path.isdir(DestDir):
- print DestDir,"is not a directory"
+if not os.path.isdir(g_DestDir):
+ print g_DestDir,"is not a directory"
sys.exit(1)
def FileDiff(SrcFile,DestFile):
@@ -227,5 +231,5 @@ def SynchroniseDir(SrcDir,DestDir):
PrintBusy()
g_Dot=1
-SynchroniseDir(SrcDir,DestDir)
+SynchroniseDir(g_SrcDir,g_DestDir)
sys.stdout.write("\n")