mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
	
		
			440 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
	
		
			440 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
#!/bin/sh -eu
 | 
						|
old_version="$1"
 | 
						|
new_version="$2"
 | 
						|
sed -i meson.build -e "s/^	version: .*#release_version/	version: '$new_version', #release_version/g"
 | 
						|
 | 
						|
printf "Minimum wlroots version? "
 | 
						|
read wlr_version_min
 | 
						|
printf "Maximum wlroots version? "
 | 
						|
read wlr_version_max
 | 
						|
 | 
						|
sed -i meson.build -e "s/wlroots_version =.*/wlroots_version = ['>=$wlr_version_min', '<$wlr_version_max']/"
 | 
						|
 | 
						|
git add meson.build
 | 
						|
git commit -m "Update version to $new_version"
 |