File: lock-version-monolithic.sh

package info (click to toggle)
libshib-parent-project2-java 1-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 640 kB
  • ctags: 20
  • sloc: xml: 915; sh: 268; makefile: 6
file content (20 lines) | stat: -rwxr-xr-x 545 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#! /bin/bash

# Adjusts the reference to the eclipse project POM, and project 
# checkstyle configuration such that it points to static, tagged parent project
# information.

if [ $# != 2 ] ; then
    echo "Usage: $(basename $0) <VERSION> <DIRECTORY>"
    echo "   VERSION - the numeric version number of the parent project that the given project should be locked to"
    echo "   DIRECTORY - path to the project"
    exit 1;
fi

LOCATION=$0
LOCATION=${LOCATION%/*}

source $LOCATION/lock-version-common.sh

lock_pom $1 $2
lock_checkstyle $1 $2