mirror of
				https://github.com/SwallowOS/xorg_lib_libxcb
				synced 2025-11-04 13:54:44 +08:00 
			
		
		
		
	now, I know how to use api_conv.pl :)
This commit is contained in:
		
							
								
								
									
										17
									
								
								tools/README
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								tools/README
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,17 @@
 | 
			
		||||
 | 
			
		||||
api_conv.pl:
 | 
			
		||||
------------
 | 
			
		||||
 | 
			
		||||
 Description: used to convert old XCB names in camel case to lower
 | 
			
		||||
              case names.
 | 
			
		||||
 | 
			
		||||
 Usage:
 | 
			
		||||
 | 
			
		||||
  * for several files:
 | 
			
		||||
 | 
			
		||||
perl -i xcb/tools/api_conv.pl xcb/tools/constants <file1> <file2> ...
 | 
			
		||||
 | 
			
		||||
  * for a directory:
 | 
			
		||||
 | 
			
		||||
find dir -name '*.[ch]' -exec perl -i xcb/tools/api_conv.pl xcb/tools/constants {} +
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user