aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAshlee Young <ashlee@onosfw.com>2015-10-23 08:55:20 -0700
committerAshlee Young <ashlee@onosfw.com>2015-10-23 08:55:20 -0700
commit0eedbbb1fd13ac72e020ad68c88ba03939db95ed (patch)
tree8b21e0359a2ed42bacefca3dcdced979eb71a659
parent1d641cfa4dc7f3b61559dff1c1f4a82f3d4ddfdb (diff)
Adds mechanism to copy patches back to source code
Change-Id: I3d938508666717e5c0eac42d5808837825bbf189 Signed-off-by: Ashlee Young <ashlee@onosfw.com>
-rwxr-xr-xbuild.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/build.sh b/build.sh
index ad03a6df..07d4a68b 100755
--- a/build.sh
+++ b/build.sh
@@ -31,6 +31,9 @@ BUILDROOT=$GERRITROOT/framework/build
JAVA_VERSION=1.8
ANT_VERSION=1.9.6
MAVEN_VERSION=3.3.3
+PATCHES=$GERRITROOT/framework/patches
+SOURCES=$GERRITROOT/framework/src
+PATCH_PATH_1=onos/apps/vtn/vtnrsc/src/main/java/org/onosproject/vtnrsc/sfc
##### End Settings #####
##### Set build environment #####
@@ -94,6 +97,8 @@ updateONOS()
cd ../
rm -rf onosproject
cd $GERRITROOT
+ mkdir -p framework/src/$PATCH_PATH_1
+ cp $PATCHES/$PATCH_PATH_1/* $SOURCES/$PATCH_PATH_1/
fi
}
##### End Update ONOS #####