Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 44 lines (35 sloc) 0.993 kb
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=root --group=root $distdir
bzip2 -c $tarfile > ${tarfile}.bz2
lzma -c $tarfile > ${tarfile}.lzma
Something went wrong with that request. Please try again.