mirror of
				https://github.com/Telecominfraproject/ols-nos.git
				synced 2025-11-03 19:47:56 +00:00 
			
		
		
		
	* Create the src archive in target/ when INSTALL_DEBUG_TOOLS=y * Dropped -v (verbose flag) from tar command
		
			
				
	
	
		
			13 lines
		
	
	
		
			308 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			308 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/bash
 | 
						|
 | 
						|
# Provide file paths to archive for debug image as relative to src subdir
 | 
						|
#
 | 
						|
if [ "$DEBUG_IMG" == "y" ]
 | 
						|
then
 | 
						|
    for i in $DEBUG_SRC_ARCHIVE_DIRS
 | 
						|
    do
 | 
						|
        find src/$i/ -name "*.c" -o -name "*.cpp" -o -name "*.h" -o -name "*.hpp" -type f
 | 
						|
    done | tar -czf $DEBUG_SRC_ARCHIVE_FILE -T -
 | 
						|
fi
 | 
						|
 |