File: zipme

package info (click to toggle)
lsof 4.99.4%2Bdfsg-2
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,924 kB
  • sloc: ansic: 50,680; sh: 8,351; makefile: 1,194; perl: 940; awk: 214
file content (16 lines) | stat: -rwxr-xr-x 261 bytes parent folder | download
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