File: get_orig_src.sh

package info (click to toggle)
python-demgengeo 1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,004 kB
  • ctags: 2,158
  • sloc: cpp: 12,532; python: 1,260; makefile: 281; sh: 92
file content (26 lines) | stat: -rwxr-xr-x 643 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/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, bzr

bzr checkout lp:esys-particle/gengeo 
cd gengeo

BZR_REV=$(bzr revno)
VER_DEB=0.99~bzr$BZR_REV
FOLDER_NAME=python-demgengeo-$VER_DEB
TARBALL_NAME=python-demgengeo_$VER_DEB.orig.tar.xz


echo $VER_DEB
echo $FOLDER_NAME
echo $TARBALL_NAME

cd ..
mv gengeo $FOLDER_NAME
rm -rf $FOLDER_NAME/.bzr
apack $TARBALL_NAME $FOLDER_NAME
rm -rf $FOLDER_NAME