add Apache license

Project: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-trafodion/commit/9867597c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/tree/9867597c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/diff/9867597c

Branch: refs/heads/master
Commit: 9867597cb37ee48b83fdf8ca2ee33d3768dae801
Parents: a3b306b
Author: Kevin Xu <[email protected]>
Authored: Wed Dec 23 15:43:14 2015 +0800
Committer: Kevin Xu <[email protected]>
Committed: Wed Dec 23 15:43:14 2015 +0800

----------------------------------------------------------------------
 core/sql/lib_mgmt/Makefile   |  2 +-
 core/sql/lib_mgmt/README.md  | 24 ---------------------
 core/sql/lib_mgmt/README.rst | 45 +++++++++++++++++++++++++++++++++++++++
 3 files changed, 46 insertions(+), 25 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/9867597c/core/sql/lib_mgmt/Makefile
----------------------------------------------------------------------
diff --git a/core/sql/lib_mgmt/Makefile b/core/sql/lib_mgmt/Makefile
index a32c511..a89701e 100644
--- a/core/sql/lib_mgmt/Makefile
+++ b/core/sql/lib_mgmt/Makefile
@@ -24,7 +24,7 @@ INSTALL_SCRIPTSDIR := ${MY_SQROOT}/sql/scripts
 CP :=/bin/cp -f
 all:
        @$(MAVEN) package
-       ${CP} target/spj_mgmt-*.jar ${INSTALL_LIBDIR}/lib_mgmt.jar
+       ${CP} target/lib_mgmt-*.jar ${INSTALL_LIBDIR}/lib_mgmt.jar
        ${CP} src/main/resources/init_libmgmt.sh ${INSTALL_SCRIPTSDIR}/
        @chmod +x ${INSTALL_SCRIPTSDIR}/init_libmgmt.sh
 clean:

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/9867597c/core/sql/lib_mgmt/README.md
----------------------------------------------------------------------
diff --git a/core/sql/lib_mgmt/README.md b/core/sql/lib_mgmt/README.md
deleted file mode 100644
index 7228a65..0000000
--- a/core/sql/lib_mgmt/README.md
+++ /dev/null
@@ -1,24 +0,0 @@
-##How to build and initialize default SPJs
-###Build
-```  
-cd $MY_SQROOT/../conn/spj_init    
-make clean && make all  
-```
-###Initialization
-```  
-cds  
-./init_spj.sql  
-```  
-###SPJ Example
-```
-DEFAULT_SPJ.HELP(INOUT COMMANDNAME VARCHAR)  
-E.g.   
-trafci>set param ?p1 help;  
-trafci>call DEFAULT_SPJ.HELP(?p1)  
-PUT - Upload a JAR. SHOWDDL PRODURE DEFAULT_SPJ.PUT for more info.  
-LS - List JARs. SHOWDDL PRODURE DEFAULT_SPJ.LS for more info.  
-LSALL - List all JARs. SHOWDDL PRODURE DEFAULT_SPJ.LSALL for more info.  
-RM - Remove a JAR. SHOWDDL PRODURE DEFAULT_SPJ.RM for more info.  
-RMREX - Remove JARs by a perticular pattern. SHOWDDL PRODURE DEFAULT_SPJ.RMREX 
for more info.  
-GETFILE - Upload a JAR. SHOWDDL PRODURE DEFAULT_SPJ.GETFILE for more info.  
-```

http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/9867597c/core/sql/lib_mgmt/README.rst
----------------------------------------------------------------------
diff --git a/core/sql/lib_mgmt/README.rst b/core/sql/lib_mgmt/README.rst
new file mode 100644
index 0000000..a821b91
--- /dev/null
+++ b/core/sql/lib_mgmt/README.rst
@@ -0,0 +1,45 @@
+.. # @@@ START COPYRIGHT @@@
+   #
+   # Licensed to the Apache Software Foundation (ASF) under one
+   # or more contributor license agreements.  See the NOTICE file
+   # distributed with this work for additional information
+   # regarding copyright ownership.  The ASF licenses this file
+   # to you under the Apache License, Version 2.0 (the
+   # "License"); you may not use this file except in compliance
+   # with the License.  You may obtain a copy of the License at
+   #
+   #   http://www.apache.org/licenses/LICENSE-2.0
+   #
+   # Unless required by applicable law or agreed to in writing,
+   # software distributed under the License is distributed on an
+   # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+   # KIND, either express or implied.  See the License for the
+   # specific language governing permissions and limitations
+   # under the License.
+   #
+   # @@@ END COPYRIGHT @@@
+
+##How to build and initialize default SPJs
+###Build
+```  
+cd $MY_SQROOT/../conn/spj_init    
+make clean && make all  
+```
+###Initialization
+```  
+cds  
+./init_spj.sql  
+```  
+###SPJ Example
+```
+DEFAULT_SPJ.HELP(INOUT COMMANDNAME VARCHAR)  
+E.g.   
+trafci>set param ?p1 help;  
+trafci>call DEFAULT_SPJ.HELP(?p1)  
+PUT - Upload a JAR. SHOWDDL PRODURE DEFAULT_SPJ.PUT for more info.  
+LS - List JARs. SHOWDDL PRODURE DEFAULT_SPJ.LS for more info.  
+LSALL - List all JARs. SHOWDDL PRODURE DEFAULT_SPJ.LSALL for more info.  
+RM - Remove a JAR. SHOWDDL PRODURE DEFAULT_SPJ.RM for more info.  
+RMREX - Remove JARs by a perticular pattern. SHOWDDL PRODURE DEFAULT_SPJ.RMREX 
for more info.  
+GETFILE - Upload a JAR. SHOWDDL PRODURE DEFAULT_SPJ.GETFILE for more info.  
+```

Reply via email to