Welcome to mirror list, hosted at ThFree Co, Russian Federation.

make_tarball_from_git.sh « utils - github.com/rpm-software-management/createrepo_c.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a2025928ab8e46e215825e3fae8614862ec01671 (plain)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/bash

NAME="createrepo_c"
VER="0.1.0"

if [ $# -ne "0" ]
then
    echo "Usage: `basename $0`"
    exit 1
fi

MY_DIR=`dirname $0`
MY_DIR="$MY_DIR/"

DIRECTORY="./$NAME-$VER"
TARBALL="$DIRECTORY.tar.bz2"

TMP_DIR=`mktemp -d`
echo "Using TMP_DIR: $TMP_DIR"

echo "Using root projekt dir: $PREFIX"

(
    echo "cd $PREFIX"
    cd $PREFIX

    echo "Cloning git repo..."
    git clone git://fedorahosted.org/git/createrepo_c.git $TMP_DIR
)

echo "Making tarball from git..."
$MY_DIR/make_tarball.sh $TMP_DIR

echo "Copy tarball"
cp $TMP_DIR/$TARBALL $MY_DIR/../

echo "Rm temp..."
echo "rm -rf $TMP_DIR"
rm -rf $TMP_DIR

echo "DONE"