mirror of
				https://github.com/AetherDroid/android_kernel_samsung_on5xelte.git
				synced 2025-10-31 08:08:51 +01:00 
			
		
		
		
	Fixed MTP to work with TWRP
This commit is contained in:
		
						commit
						f6dfaef42e
					
				
					 50820 changed files with 20846062 additions and 0 deletions
				
			
		
							
								
								
									
										35
									
								
								tools/power/cpupower/utils/version-gen.sh
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										35
									
								
								tools/power/cpupower/utils/version-gen.sh
									
										
									
									
									
										Executable file
									
								
							|  | @ -0,0 +1,35 @@ | |||
| #!/bin/sh | ||||
| # | ||||
| # Script which prints out the version to use for building cpupowerutils. | ||||
| # Must be called from tools/power/cpupower/ | ||||
| #  | ||||
| # Heavily based on tools/perf/util/PERF-VERSION-GEN . | ||||
| 
 | ||||
| LF=' | ||||
| ' | ||||
| 
 | ||||
| # First check if there is a .git to get the version from git describe | ||||
| # otherwise try to get the version from the kernel makefile | ||||
| if test -d ../../../.git -o -f ../../../.git && | ||||
| 	VN=$(git describe --abbrev=4 HEAD 2>/dev/null) && | ||||
| 	case "$VN" in | ||||
| 	*$LF*) (exit 1) ;; | ||||
| 	v[0-9]*) | ||||
| 		git update-index -q --refresh | ||||
| 		test -z "$(git diff-index --name-only HEAD --)" || | ||||
| 		VN="$VN-dirty" ;; | ||||
| 	esac | ||||
| then | ||||
| 	VN=$(echo "$VN" | sed -e 's/-/./g'); | ||||
| else | ||||
| 	eval $(grep '^VERSION[[:space:]]*=' ../../../Makefile|tr -d ' ') | ||||
| 	eval $(grep '^PATCHLEVEL[[:space:]]*=' ../../../Makefile|tr -d ' ') | ||||
| 	eval $(grep '^SUBLEVEL[[:space:]]*=' ../../../Makefile|tr -d ' ') | ||||
| 	eval $(grep '^EXTRAVERSION[[:space:]]*=' ../../../Makefile|tr -d ' ') | ||||
| 
 | ||||
| 	VN="${VERSION}.${PATCHLEVEL}.${SUBLEVEL}${EXTRAVERSION}" | ||||
| fi | ||||
| 
 | ||||
| VN=$(expr "$VN" : v*'\(.*\)') | ||||
| 
 | ||||
| echo $VN | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 awab228
						awab228