#!/bin/sh # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you 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. # # Usage: package file.tar files="CLIENT_README InkBench.config inkbench_client inkbench_client_sun4 \ api/Makefile api/ClientAPI.h api/hello_world.c api/options_process.c \ api/options_process_finish.c api/connection_finish.c \ api/plugin_finish.c api/request_create.c api/header_process.c \ api/partial_body_process.c api/report.c api/SimInkBench.c \ api/SimInkBenchCache.c api/BlackList.c \ api/host.forbid api/host.allow \ \ synth_server/SYNTH_README synth_server/Synth_server.config \ synth_server/synth_server synth_server/synth_server_sun4 \ synth_server/api/Makefile synth_server/api/ServerAPI.h \ synth_server/api/hello_world.c synth_server/api/options_process.c \ synth_server/api/options_process_finish.c \ synth_server/api/plugin_finish.c synth_server/api/response_prepare.c \ synth_server/api/SimSynthServer.c synth_server/api/SimSynthServerCache.c \ synth_server/api/LogRequest.c \ \ inkbench a.awk histogram.awk summarize.awk gnuplot-docsize \ benchmark-o-matic make-server-content package \ docsize.10 docsize.10000 docsize.100000 docsize.isp docsize.onefile \ docsize.real docsize.specweb byterate.1000 byterate.3000 \ byterate.fast byterate.specweb thinktime.0 thinktime.1sec thinktime.slow" CheckFile () { file=$1 if [ ! -f $file ]; then echo "Can't find file: " $file exit 1 fi } # check to see if the files exist for file in $files ; do CheckFile $file done # tar the files together cmd="tar cf $1 $files"; exec $cmd