Added .gitignore.
This commit is contained in:
		
							parent
							
								
									9bc23e149c
								
							
						
					
					
						commit
						a2526dd3ed
					
				
							
								
								
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							| @ -1,2 +1,3 @@ | |||||||
| Debug | Debug | ||||||
| *.o | *.o | ||||||
|  | *~ | ||||||
|  | |||||||
							
								
								
									
										21
									
								
								compile
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										21
									
								
								compile
									
									
									
									
									
										Executable file
									
								
							| @ -0,0 +1,21 @@ | |||||||
|  | #!/bin/bash | ||||||
|  | 
 | ||||||
|  | for file in *.cpp | ||||||
|  | do | ||||||
|  |    filename="${file%.*}" | ||||||
|  |    list="$list $filename.o"   | ||||||
|  |    echo -n "Compiling $filename..." | ||||||
|  |    g++ -c $file | ||||||
|  |    if [ $? = '0' ] | ||||||
|  |    then | ||||||
|  |     echo "OK" | ||||||
|  |    else | ||||||
|  |     echo "ERROR" | ||||||
|  |    fi    | ||||||
|  |     | ||||||
|  | done | ||||||
|  | 
 | ||||||
|  | wait | ||||||
|  | echo $list | ||||||
|  | g++ -o main.cpp $list  | ||||||
|  | 
 | ||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Brad Arant
						Brad Arant