mirror of
				https://github.com/Telecominfraproject/OpenNetworkLinux.git
				synced 2025-11-02 19:28:18 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			27 lines
		
	
	
		
			535 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			535 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/bash
 | 
						|
############################################################
 | 
						|
#
 | 
						|
# This script is called whenever a submodule is updated
 | 
						|
# in the repository.
 | 
						|
#
 | 
						|
# When a submodule is updated there are two things that need
 | 
						|
# to happen:
 | 
						|
#
 | 
						|
# 1. The module manifest needs to be regenerated.
 | 
						|
# 2. The package cache needs to be regenerated.
 | 
						|
#
 | 
						|
############################################################
 | 
						|
 | 
						|
# Removing the manifest causes it to be regenerated.
 | 
						|
rm -rf $ONL/make/modules/module*
 | 
						|
 | 
						|
# Rebuild pkg cache
 | 
						|
onlpm.py --rebuild-pkg-cache
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 | 
						|
 |