import babelbox-etch.tgz (thanks, bubulle)
SHA-1:b7fcbd9076903bb98474a7b6c5b4d860ece09bcd, from <http://d-i.alioth.debian.org/pub/etch/babelbox/babelbox.tgz>
This commit is contained in:
		
						commit
						635d04b29f
					
				
					 13 changed files with 598 additions and 0 deletions
				
			
		
							
								
								
									
										27
									
								
								localize-preseed
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										27
									
								
								localize-preseed
									
										
									
									
									
										Executable file
									
								
							|  | @ -0,0 +1,27 @@ | |||
| #! /bin/sh | ||||
| 
 | ||||
| cp babelbox-preseed.cfg preseed.cfg | ||||
| 
 | ||||
| get_trans () { | ||||
| 	for LANG in $1 ${1%%_*} ; do | ||||
| 		if [ "$LANG" = "en" ] ; then | ||||
| 			REGEXP="^Description:" | ||||
| 		else | ||||
| 			REGEXP="^Description-$LANG[^_]*:" | ||||
| 		fi | ||||
| 		DESCR=$(grep "$REGEXP" $TEMPLATE.txt | sed "s/^.*: //") | ||||
| 		if [ -n "$DESCR" ] ; then | ||||
| 			echo $DESCR | ||||
| 			break | ||||
| 		fi | ||||
| 	done | ||||
| } | ||||
| 
 | ||||
| for TEMPLATE in use_biggest_free atomic_scheme; do | ||||
| 	TRANS=$(get_trans $1) | ||||
| 	if [ -z "$TRANS" ] ; then | ||||
| 		exit 1 | ||||
| 	else | ||||
| 		sed -i "s@%%$TEMPLATE%%@$TRANS@" preseed.cfg | ||||
| 	fi | ||||
| done | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue