[heaptrack] 06/08: Add script to download heaptrack from github.

Anton Gladky gladk at moszumanska.debian.org
Wed May 3 20:34:20 UTC 2017


This is an automated email from the git hooks/post-receive script.

gladk pushed a commit to branch master
in repository heaptrack.

commit ee63343bc3ce0956c406ff42b52295d92faa3e13
Author: Anton Gladky <gladk at debian.org>
Date:   Wed May 3 22:24:53 2017 +0200

    Add script to download heaptrack from github.
---
 debian/scripts/get_orig_src.sh | 42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

diff --git a/debian/scripts/get_orig_src.sh b/debian/scripts/get_orig_src.sh
new file mode 100755
index 0000000..aaf55f4
--- /dev/null
+++ b/debian/scripts/get_orig_src.sh
@@ -0,0 +1,42 @@
+#!/bin/bash
+
+# The script creates a tar.xz tarball from git-repository of heaptrack-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 https://github.com/KDE/heaptrack.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$GIT_REV
+FOLDER_NAME=heaptrack-0~$GIT_DAT.git$GIT_REV
+TARBALL_NAME=heaptrack_0~$GIT_DAT.git$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 
+find $FOLDER_NAME/doc/_static/ -name *.js -exec rm -rf {} \;
+find $FOLDER_NAME/ -name .gitignore -exec rm -rf {} \;
+rm -rf $FOLDER_NAME/doc/utils/sphinx-config
+
+tar Jcvf $TARBALL_NAME $FOLDER_NAME

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/heaptrack.git



More information about the debian-science-commits mailing list