File: mkdist

package info (click to toggle)
gnuplot 3.5beta6.347-3
  • links: PTS
  • area: main
  • in suites: slink
  • size: 5,032 kB
  • ctags: 4,235
  • sloc: ansic: 42,086; makefile: 561; asm: 539; sh: 386; objc: 379; csh: 297; pascal: 194; perl: 138; lisp: 88
file content (23 lines) | stat: -rwxr-xr-x 632 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#! /bin/sh
#
# $Id: mkdist,v 1.5 1997/04/10 02:33:06 drd Exp $
#
# script to create a tar.gz of a development version. This script will not be
# in any `real' distribution
#

mkdir dist.tmp
cd dist.tmp
# -P (prune) means dont checkout empty directories
# I would delete directory emx from the repository if I knew how !
cvs co -P $1 gnuplot
cd gnuplot
find . -name CVS -o -name .cvsignore|xargs rm -r
cd ..
pl=`sed -n 's/.*patchlevel.*"\(.*\)".*/\1/p' gnuplot/version.c|tr -d " "`
# what compression level does tar z use ?
tar cvf - gnuplot | gzip -9 > gnuplot-$pl.tar.gz
rm -r gnuplot
mv gnuplot-$pl.tar.gz ..
cd ..
rmdir dist.tmp