X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=blobdiff_plain;f=tools%2Frelease%2Ftinyos-tools.files;h=20145b9ed168ec464fb7b5f51960d900a7a4a0dd;hp=d341370d6d1c858677b7e391a5ff287e88da0d89;hb=788537fe28c47e92ce684994f88f85b41f92f798;hpb=82ff984239b5b5088c952b684a5ab0f8112b8074 diff --git a/tools/release/tinyos-tools.files b/tools/release/tinyos-tools.files index d341370d..20145b9e 100755 --- a/tools/release/tinyos-tools.files +++ b/tools/release/tinyos-tools.files @@ -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