]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tools/release/tinyos-tools.files
Applied patches from Joel Granados.
[tinyos-2.x.git] / tools / release / tinyos-tools.files
index d341370d6d1c858677b7e391a5ff287e88da0d89..20145b9ed168ec464fb7b5f51960d900a7a4a0dd 100755 (executable)
@@ -1,9 +1,9 @@
-NAME=tinyos-tools
-VERSION=1.3.0
+NAME="$1"
+VERSION="$2"
+OUTPUT_FILE="$3"
 
-cd ../..
-rm -rf $NAME-$VERSION
-tools/release/extractor $NAME-$VERSION <<'EOF' | gzip >../$NAME-$VERSION.tar.gz
+pushd ../../
+./tools/release/extractor $NAME-$VERSION $OUTPUT_FILE <<'EOF'
 !^./apps
 !^./doc
 !^./support
@@ -16,4 +16,4 @@ tools/release/extractor $NAME-$VERSION <<'EOF' | gzip >../$NAME-$VERSION.tar.gz
 !~$
 !#
 EOF
-rm -rf $NAME-$VERSION
+popd