File: backup

package info (click to toggle)
code-saturne 7.0.2%2Brepack-1~exp1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 62,868 kB
  • sloc: ansic: 395,271; f90: 100,755; python: 86,746; cpp: 6,227; makefile: 4,247; xml: 2,389; sh: 1,091; javascript: 69
file content (25 lines) | stat: -rwxr-xr-x 457 bytes parent folder | download | duplicates (3)
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
#!/bin/sh

PREFIX=`dirname $0`
PREFIX=`cd "$PREFIX/.." ; pwd`
SUBDIR=`basename $PREFIX`

ARCHNAME=${SUBDIR}.tar.xz

RUNDIR=`pwd`

cd $PREFIX/.. || exit 1

PREFIX_BASE=`basename $PREFIX`

tar cvJf $ARCHNAME --exclude='.*.swp' \
                   --exclude='build' \
                   --exclude='arch' \
                   --exclude='neptune_cfd' \
                   --exclude=$ARCHNAME \
                   $PREFIX_BASE

mv $ARCHNAME $RUNDIR

cd $RUNDIR