Author: coudot
Date: 2010-07-29 10:32:41 +0200 (Thu, 29 Jul 2010)
New Revision: 114

Added:
   self-service-password/trunk/packaging/makedist.sh
Log:
Script to build tar.gz distributuion (references #185)

Added: self-service-password/trunk/packaging/makedist.sh
===================================================================
--- self-service-password/trunk/packaging/makedist.sh                           
(rev 0)
+++ self-service-password/trunk/packaging/makedist.sh   2010-07-29 08:32:41 UTC 
(rev 114)
@@ -0,0 +1,44 @@
+#!/bin/sh
+
+# Make tar.gz distribution of Self Service Password
+# Usage:
+# * Run from current directory
+# * Set version as parameter
+# Example:
+# ./makedist.sh 0.4
+
+# Get version
+VERSION=$1
+
+# Program name
+NAME=ltb-project-self-service-password
+
+# Remove previous packages if any
+rm -f $NAME*
+
+# Create dist dir
+mkdir -p $NAME-$VERSION
+mkdir -p $NAME-$VERSION/lang
+mkdir -p $NAME-$VERSION/pages
+mkdir -p $NAME-$VERSION/style
+
+# Copy files
+cp ../*.php $NAME-$VERSION
+cp ../lang/* $NAME-$VERSION/lang
+cp ../pages/* $NAME-$VERSION/pages
+cp ../style/* $NAME-$VERSION/style
+
+# Create archive
+tar -cf $NAME-$VERSION.tar $NAME-$VERSION/
+
+# Compress
+gzip $NAME-$VERSION.tar
+
+# Remove dist dir
+rm -rf $NAME-$VERSION
+
+# I am proud to tell you that I finished the job
+echo "Archive build: $NAME-$VERSION"
+
+# Exit
+exit 0


Property changes on: self-service-password/trunk/packaging/makedist.sh
___________________________________________________________________
Added: svn:executable
   + *

_______________________________________________
ltb-changes mailing list
[email protected]
http://lists.ltb-project.org/listinfo/ltb-changes

Reply via email to