Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Script to make a development version archive (initial start)

  • Loading branch information...
commit fb631d1e43e6e9f023b61d72613657d98bad106c 1 parent 117fd9d
@dterweij dterweij authored
Showing with 85 additions and 0 deletions.
  1. +85 −0 hypervm/make-development.sh
View
85 hypervm/make-development.sh
@@ -0,0 +1,85 @@
+#!/bin/sh
+# HyperVM, Server Virtualization GUI for OpenVZ and Xen
+#
+# Copyright (C) 2000-2009 LxLabs
+# Copyright (C) 2009-2011 LxCenter
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+#
+#
+# This file creates hypervm-[version].[build] archive for distribution.
+#
+# Requires p7zip package from epel
+# Requires git package from epel
+#
+# - read version
+# - compile c files
+# - create zip package
+######
+echo "################################"
+echo "### Start packaging"
+echo "### read version..."
+# Read version
+# Please note, this must be a running (HyperVM installed) machine (Development/Test/Release server)
+if ! [ -f /script/version ] ; then
+ echo "## Packaging failed. No /script/version found."
+ echo "## Are you sure you are running a development version?"
+ echo "### Aborted."
+ echo "################################"
+ exit
+fi
+version=`/script/version`
+build=`git log --pretty=format:'' | wc -l`
+
+rm -f hypervm-$version.$build.zip
+#
+echo "### Compile c files..."
+# Compile C files
+cd src
+make all; make install
+cd ../
+#
+echo "### Create zip package..."
+# Package part
+file=hypervm-$version.$build.zip
+
+zip -r9 $file ./src ./bin ./cexe ./file ./httpdocs ./pscript ./sbin ./RELEASEINFO -x \
+ "*/CVS/*" \
+ "*/.git/*" \
+ "*/.svn/*"
+#
+
+file=hypervm-$version.$build.tar.gz
+
+tar cvfz $file \
+ ./src ./bin ./cexe ./file ./httpdocs ./pscript ./sbin ./RELEASEINFO \
+ --exclude="CVS" \
+ --exclude=".svn" \
+ --exclude=".git"
+
+file=hypervm-$version.$build.7z
+
+7za a \
+ -xr!?svn\* \
+ -xr!?git\* \
+ -xr!CVS\* \
+ $file \
+ ./src ./bin ./cexe ./file ./httpdocs ./pscript ./sbin ./RELEASEINFO
+
+echo "### Finished"
+echo "################################"
+ls -lh hypervm-*.*
+#
+
Please sign in to comment.
Something went wrong with that request. Please try again.