mirror of
				https://github.com/MariaDB/server.git
				synced 2025-11-03 14:33:32 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			335 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			335 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/sh
 | 
						|
 | 
						|
if test $# -ne 1
 | 
						|
then
 | 
						|
  echo "Copies # error messages from share/english/errmsg.txt to other message files"
 | 
						|
  echo "Usage: $0 number_of_messages_to_copy"
 | 
						|
  exit 1;
 | 
						|
fi
 | 
						|
 | 
						|
FILE=/tmp/add.$$
 | 
						|
tail -$1 share/english/errmsg-utf8.txt > $FILE
 | 
						|
for i in `ls share/*/errmsg-utf8.txt | grep -v english`
 | 
						|
do
 | 
						|
  cat $FILE >> $i
 | 
						|
done
 | 
						|
rm $FILE
 | 
						|
 |