PageRenderTime 27ms CodeModel.GetById 21ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/js/lib/Socket.IO-node/support/expresso/deps/jscoverage/make-dist.sh.in

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