Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

installer scripts

  • Loading branch information...
commit ab829a4c3fd9ba0bda9d9b54b52dcb1d64395ca4 1 parent e12ee81
Andrew Lamb alamb authored
Showing with 77 additions and 0 deletions.
  1. +40 −0 tools/install_package
  2. +37 −0 tools/make_package
40 tools/install_package
View
@@ -0,0 +1,40 @@
+#!/bin/bash
+
+if (($# != 2))
+then
+ echo >&2 \
+ "Usage: $0 -p <package-file-name>"
+ exit 1
+fi
+
+PACKAGE=
+while getopts p: opt
+do
+ case "$opt" in
+ p) PACKAGE="$OPTARG";;
+ \?) # unknown flag
+ echo >&2 \
+ "Usage: $0 -p <package-file-name>"
+ exit 1;;
+ esac
+done
+shift `expr $OPTIND - 1`
+
+if [ "X$VSQL_COMMAND" = "X" ]; then
+ VSQL_COMMAND="/opt/vertica/bin/vsql"
+fi
+
+if [ "X$TMPDIR" = "X" ]; then
+ TMPDIR="/tmp"
+fi
+
+PACKAGE_NAME=`basename $PACKAGE`
+PACKAGE_NAME=${PACKAGE_NAME}.extract
+
+unzip -o -d $TMPDIR/$PACKAGE_NAME $PACKAGE
+
+cd $TMPDIR/$PACKAGE_NAME
+./install.sh
+cd $TMPDIR
+rm -rf $TMPDIR/$PACKAGE_NAME
+
37 tools/make_package
View
@@ -0,0 +1,37 @@
+#!/bin/bash
+
+if (($# != 6))
+then
+ echo >&2 \
+ "Usage: $0 -d <package-directory> -o <output-file-name> -s <vertica-sdk-directory>"
+ exit 1
+fi
+
+PACKAGE_DIR=
+OUTPUT=
+while getopts d:o:s: opt
+do
+ case "$opt" in
+ d) PACKAGE_DIR="$OPTARG";;
+ o) OUTPUT="$OPTARG";;
+ s) SDK="$OPTARG";;
+ \?) # unknown flag
+ echo >&2 \
+ "Usage: $0 -d <package-directory> -o <output-file-name> -s <vertica-sdk-directory>"
+ exit 1;;
+ esac
+done
+shift `expr $OPTIND - 1`
+
+cd $PACKAGE_DIR
+cd build
+export SDK
+make
+cd ..
+zip -r $OUTPUT src lib bin examples install.sh readme.txt -x "*.svn*"
+mv $OUTPUT ..
+cd ..
+
+
+
+
Please sign in to comment.
Something went wrong with that request. Please try again.