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