Permalink
Browse files

Provide scripts to easily execute the various ttorrent programs

Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
  • Loading branch information...
1 parent b21da52 commit d8a7def7b89bd526facefe430afb5d0c0caf7ab1 @mpetazzoni mpetazzoni committed Sep 15, 2012
Showing with 54 additions and 0 deletions.
  1. +18 −0 bin/client
  2. +18 −0 bin/torrent
  3. +18 −0 bin/tracker
View
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+# Copyright (C) 2012 Turn, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+base=$(dirname $(readlink -f $0))
+exec java -jar $(find ${base}/../build -name "ttorrent-*.jar" | tail -n 1) $*
View
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+# Copyright (C) 2012 Turn, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+base=$(dirname $(readlink -f $0))
+exec java -cp $(find ${base}/../build -name "ttorrent-*.jar" | tail -n 1) com.turn.ttorrent.common.Torrent $*
View
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+# Copyright (C) 2012 Turn, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+base=$(dirname $(readlink -f $0))
+exec java -cp $(find ${base}/../build -name "ttorrent-*.jar" | tail -n 1) com.turn.ttorrent.tracker.Tracker $*

0 comments on commit d8a7def

Please sign in to comment.