/[jscoverage]/trunk/make-dist.sh.in
ViewVC logotype

Annotation of /trunk/make-dist.sh.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 558 - (hide annotations)
Wed Apr 21 23:46:06 2010 UTC (9 years, 3 months ago) by siliconforks
File size: 983 byte(s)
Use numeric IDs for --owner and --group options to tar.

1 siliconforks 2 #!/bin/sh
2    
3     set -e
4    
5     version=@VERSION@
6     distdir=jscoverage-${version}
7    
8     rm -fr $distdir
9     mkdir $distdir
10    
11     # copy all files in SVN
12 siliconforks 58 for file in $(svn status -qv | sed 's/.* //' | sort)
13 siliconforks 2 do
14     if [ -f "$file" ]
15     then
16     cp -a --parents "$file" $distdir
17     fi
18     done
19    
20     # add generated files
21 siliconforks 195 cp -a --parents aclocal.m4 \
22     configure \
23     config.h.in \
24 siliconforks 407 Makefile.in config.guess config.sub depcomp install-sh missing \
25 siliconforks 195 $distdir
26 siliconforks 2 cp -a --parents tests/Makefile.in $distdir
27     cp -a --parents doc/instrumented $distdir
28 siliconforks 48 cp -a --parents doc/instrumented-inverted $distdir
29 siliconforks 2
30     # remove unnecessary files
31     rm $distdir/TIMESTAMP
32     rm $distdir/bootstrap.sh
33 siliconforks 194 rm $distdir/make-maintainer-clean.sh
34 siliconforks 2 rm -r $distdir/scriptaculous*
35 siliconforks 234 rm -r $distdir/selenium
36 siliconforks 2
37     timestamp=`cat TIMESTAMP`
38     find $distdir -exec touch -d "$timestamp" {} \;
39    
40 siliconforks 194 tarfile=${distdir}.tar
41 siliconforks 558 tar cvf $tarfile --owner=0 --group=0 $distdir
42 siliconforks 194 bzip2 -c $tarfile > ${tarfile}.bz2
43 siliconforks 557 xz -c $tarfile > ${tarfile}.xz

  ViewVC Help
Powered by ViewVC 1.1.24