Skip to content

Commit

Permalink
Fixed and simplified make-release.sh script.
Browse files Browse the repository at this point in the history
  • Loading branch information
danfis committed Oct 8, 2010
1 parent c81e118 commit b5374df
Showing 1 changed file with 1 addition and 90 deletions.
91 changes: 1 addition & 90 deletions make-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,95 +5,10 @@

NAME=libgjk
COMMIT=""
NOTEST=0
NODOC=0
CMD="git archive"

FILES_SRC="
BSD-LICENSE
README
src/alloc.c
src/alloc.h
src/compiler.h
src/config.h.in
src/dbg.h
src/.gitignore
src/gjk
src/gjk.c
src/gjk.h
src/gjk_support.c
src/gjk_support.h
src/list.h
src/Makefile
src/Makefile.include
src/polytope.c
src/polytope.h
src/quat.h
src/simplex.h
src/support.c
src/support.h
src/vec3.c
src/vec3.h
"

FILES_DOC="
doc/jgt98convex.pdf
"

FILES_TEST="
src/testsuites/bench.c
src/testsuites/boxbox.c
src/testsuites/boxbox.h
src/testsuites/boxcyl.c
src/testsuites/boxcyl.h
src/testsuites/common.c
src/testsuites/common.h
src/testsuites/cu
src/testsuites/cu/check-regressions
src/testsuites/cu/COPYING
src/testsuites/cu/COPYING.LESSER
src/testsuites/cu/cu.c
src/testsuites/cu/cu.h
src/testsuites/cu/cu.o
src/testsuites/cu/.dir
src/testsuites/cu/.gitignore
src/testsuites/cu/latest.sh
src/testsuites/cu/libcu.a
src/testsuites/cu/Makefile
src/testsuites/cylcyl.c
src/testsuites/cylcyl.h
src/testsuites/.gitignore
src/testsuites/main.c
src/testsuites/Makefile
src/testsuites/polytope.c
src/testsuites/polytope.h
src/testsuites/regressions
src/testsuites/regressions/.dir
src/testsuites/regressions/TSBoxBox.err
src/testsuites/regressions/TSBoxBox.out
src/testsuites/regressions/TSBoxCyl.err
src/testsuites/regressions/TSBoxCyl.out
src/testsuites/regressions/TSCylCyl.err
src/testsuites/regressions/TSCylCyl.out
src/testsuites/regressions/TSPt.err
src/testsuites/regressions/TSPt.out
src/testsuites/regressions/TSSphereSphere.err
src/testsuites/regressions/TSSphereSphere.out
src/testsuites/regressions/TSVec3.err
src/testsuites/regressions/TSVec3.out
src/testsuites/spheresphere.c
src/testsuites/spheresphere.h
src/testsuites/vec3.c
src/testsuites/vec3.h
"


# read arguments
COMMIT="$1"
while shift; do
[ "$1" = "--notest" ] && NOTEST=1;
[ "$1" = "--nodoc" ] && NODOC=1;
done;

if [ "$COMMIT" = "" ]; then
echo "Usage: $0 commit [--notest] [--nodoc]"
Expand All @@ -111,10 +26,6 @@ if echo "$COMMIT" | grep '^v[0-9]\.[0-9]\+' >/dev/null 2>&1; then
FN=${NAME}-$tmp.tar.gz
fi

FILES=$FILES_SRC
[ "$NODOC" != "1" ] && FILES="$FILES $FILES_DOC";
[ "$NOTEST" != "1" ] && FILES="$FILES $FILES_TEST";

$CMD --prefix="$PREFIX" --format=tar $COMMIT -- $FILES | gzip >"$FN"
$CMD --prefix="$PREFIX" --format=tar $COMMIT | gzip >"$FN"
echo "Package: $FN"

0 comments on commit b5374df

Please sign in to comment.