Update checkout-deps.sh.
This commit is contained in:
		
							
								
								
									
										25
									
								
								support/checkout-deps.sh
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										25
									
								
								support/checkout-deps.sh
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							@@ -49,28 +49,41 @@ fi
 | 
				
			|||||||
checkout ()
 | 
					checkout ()
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  if [ ! -d "$name" ]; then
 | 
					  if [ ! -d "$name" ]; then
 | 
				
			||||||
    hg clone http://hg.alliedmods.net/$path
 | 
					    git clone $repo -b $branch $name
 | 
				
			||||||
 | 
					    if [ -n "$origin" ]; then
 | 
				
			||||||
 | 
					      cd $name
 | 
				
			||||||
 | 
					      git remote rm origin
 | 
				
			||||||
 | 
					      git remote add origin $origin
 | 
				
			||||||
 | 
					      cd ..
 | 
				
			||||||
 | 
					    fi
 | 
				
			||||||
  else
 | 
					  else
 | 
				
			||||||
    cd $name
 | 
					    cd $name
 | 
				
			||||||
    hg pull -u
 | 
					    git checkout $branch
 | 
				
			||||||
 | 
					    git pull origin $branch
 | 
				
			||||||
    cd ..
 | 
					    cd ..
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
name=metamod-am
 | 
					name=metamod-am
 | 
				
			||||||
path=metamod-am
 | 
					branch=master
 | 
				
			||||||
 | 
					repo="https://github.com/alliedmodders/metamod-hl1"
 | 
				
			||||||
 | 
					origin=
 | 
				
			||||||
checkout
 | 
					checkout
 | 
				
			||||||
 | 
					
 | 
				
			||||||
name=hlsdk
 | 
					name=hlsdk
 | 
				
			||||||
path=hl2sdks/hlsdk
 | 
					branch=master
 | 
				
			||||||
 | 
					repo="https://github.com/alliedmodders/hlsdk"
 | 
				
			||||||
 | 
					origin=
 | 
				
			||||||
checkout
 | 
					checkout
 | 
				
			||||||
 | 
					
 | 
				
			||||||
`python -c "import ambuild2"`
 | 
					`python -c "import ambuild2"`
 | 
				
			||||||
if [ $? -eq 1 ]; then
 | 
					if [ $? -eq 1 ]; then
 | 
				
			||||||
 | 
					  repo="https://github.com/alliedmodders/ambuild"
 | 
				
			||||||
 | 
					  origin=
 | 
				
			||||||
 | 
					  branch=master
 | 
				
			||||||
  name=ambuild
 | 
					  name=ambuild
 | 
				
			||||||
  path=ambuild
 | 
					 | 
				
			||||||
  checkout
 | 
					  checkout
 | 
				
			||||||
  
 | 
					
 | 
				
			||||||
  cd ambuild
 | 
					  cd ambuild
 | 
				
			||||||
  if [ $iswin -eq 1 ]; then
 | 
					  if [ $iswin -eq 1 ]; then
 | 
				
			||||||
    python setup.py install
 | 
					    python setup.py install
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user