~ubuntu-branches/ubuntu/precise/code-saturne/precise

« back to all changes in this revision

Viewing changes to libple/sbin/backup

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2011-11-24 00:00:08 UTC
  • mfrom: (6.1.9 sid)
  • Revision ID: package-import@ubuntu.com-20111124000008-2vo99e38267942q5
Tags: 2.1.0-3
Install a missing file

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
PREFIX=`dirname $0`
 
4
PREFIX=`cd "$PREFIX/.." ; pwd`
 
5
SUBDIR=`basename $PREFIX`
 
6
 
 
7
ARCHNAME=${SUBDIR}.tar.gz
 
8
 
 
9
RUNDIR=`pwd`
 
10
 
 
11
cd $PREFIX/.. || exit 1
 
12
 
 
13
PREFIX_BASE=`basename $PREFIX`
 
14
 
 
15
tar cvzf $ARCHNAME --exclude='*.svn'  \
 
16
                   --exclude='*.git'  \
 
17
                   --exclude='.*.swp' \
 
18
                   --exclude='build' \
 
19
                   --exclude='arch' \
 
20
                   --exclude=$ARCHNAME \
 
21
                   $PREFIX_BASE
 
22
 
 
23
mv $ARCHNAME $RUNDIR
 
24
 
 
25
cd $RUNDIR
 
26