File: fix-java-versions

package info (click to toggle)
altos 1.6.8-5
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 63,748 kB
  • ctags: 36,577
  • sloc: ansic: 92,100; java: 36,273; makefile: 6,495; xml: 3,096; sh: 1,971; pascal: 1,581
file content (11 lines) | stat: -rwxr-xr-x 238 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh -vx

sed_opts='-i'

for i in "$@"; do
	name=`echo $i | sed 's/=.*$//'`
	value=`echo $i | sed 's/.*=//'`
	sed_opts="$sed_opts -e s/${name}_*[0-9]*/${name}_${value}/g"
done

find . -name '*.java*' -print0 | xargs -0 sed $sed_opts