File: collect-testdir

package info (click to toggle)
ccache 4.13.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 5,420 kB
  • sloc: cpp: 50,251; asm: 28,570; sh: 9,632; ansic: 5,357; python: 834; perl: 68; makefile: 24
file content (12 lines) | stat: -rwxr-xr-x 198 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

if [ -d testdir ]; then
    testdir=testdir
elif [ -d build/testdir ]; then
    testdir=build/testdir
else
    echo "No testdir found" >&2
    exit 0
fi

tar -caf testdir.tar.xz $testdir