File: change_ver.sh

package info (click to toggle)
eclipse-linuxtools 1.0.0-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 69,212 kB
  • sloc: java: 224,575; xml: 23,980; ansic: 15,426; python: 458; cpp: 279; sh: 251; makefile: 48
file content (10 lines) | stat: -rwxr-xr-x 267 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash

if [ $# -ne 2 ]; then
	echo "usage: $0 old_ver new_ver"
	exit 1
fi
old_ver=$(echo "$1" | sed 's/\./\\./g')
new_ver=$(echo "$2" | sed 's/\./\\./g')

find -name 'pom.xml' -o -name 'feature.xml' -o -name 'MANIFEST.MF' | xargs sed -i "s/$old_ver/$new_ver/g"