File: zipme

package info (click to toggle)
lsof 4.93.2%2Bdfsg-1.1
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 5,936 kB
  • sloc: ansic: 75,924; sh: 12,859; makefile: 1,686; perl: 1,146; awk: 214
file content (16 lines) | stat: -rwxr-xr-x 260 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

# zipme -- make a bzip2'd tar archive of ~/src/lsof4

cd $HOME/src/lsof4
V=`sed '/VN/s/.ds VN \(.*\)/\1/' $HOME/src/lsof4/version`
if test $? -ne 0
then
  echo $V
  exit 1
fi
cd ..
T=lsof${V}.tar.bz2
rm -f $T
tar cf - lsof4 | bzip2 -c > $T
ls -l $T