[SCM] LAMMPS Molecular Dynamics Simulator branch, master, updated. upstream/20120221.git18e3637-21-gc1932f6
Anton Gladky
gladky.anton at gmail.com
Wed Feb 29 22:37:15 UTC 2012
The following commit has been merged in the master branch:
commit c1932f6ea5a7e8417be498a77e391a6e9b8cde42
Author: Anton Gladky <gladky.anton at gmail.com>
Date: Wed Feb 29 23:37:06 2012 +0100
Add bash-script for creating a tarball from git-repo of upstream.
diff --git a/debian/scripts/get_orig_src.sh b/debian/scripts/get_orig_src.sh
new file mode 100755
index 0000000..5e5cdff
--- /dev/null
+++ b/debian/scripts/get_orig_src.sh
@@ -0,0 +1,39 @@
+#!/bin/bash
+
+# The script creates a tar.xz tarball from git-repository of LAMMPS-project
+# ./get_orig_src.sh commitID - creates a tarball of specified commit
+# ./get_orig_src.sh - creates a tarball of the latest version
+# Packages, that needs to be installed to use the script:
+# atool, git-core
+
+git clone http://git.icms.temple.edu/lammps-ro.git git_temp_packaging
+
+cd git_temp_packaging
+
+if [ $1 ]
+then
+ echo 'Checking out the revision ' $1
+ git checkout -b newvers $1
+else
+ echo 'Using the latest revision'
+fi
+
+GIT_REV=$(git log -n 1 --pretty="format:%h")
+GIT_DAT=$(git log -n 1 --pretty="format:%ai")
+GIT_DAT=${GIT_DAT:0:10}
+GIT_DAT=$(echo $GIT_DAT | sed 's/-//g')
+
+VER_DEB=0~$GIT_DAT.$GIT_REV
+FOLDER_NAME=lammps-0~$GIT_DAT.$GIT_REV
+TARBALL_NAME=lammps_0~$GIT_DAT.$GIT_REV.orig.tar.xz
+
+echo $VER_DEB
+echo $FOLDER_NAME
+echo $TARBALL_NAME
+
+cd ..
+
+mv git_temp_packaging $FOLDER_NAME
+rm -rf $FOLDER_NAME/.git
+
+apack $TARBALL_NAME $FOLDER_NAME
--
LAMMPS Molecular Dynamics Simulator
More information about the debian-science-commits
mailing list