Commit 48ddcfbe authored by Scott Dier's avatar Scott Dier Committed by Tobias Frost

Import Debian changes 1.2.2-3

bwbar (1.2.2-3) unstable; urgency=low

  * Applied patch from Adrian Reber that fixed the short flag (d) for
    directory. (Closes: #260999)

bwbar (1.2.2-2) unstable; urgency=low

  * Added Build-Depends on cdbs.

bwbar (1.2.2-1) unstable; urgency=low

  * New upstream release (Closes: #250730)
  * Converted to cdbs.
  * Added patch to support {K,M,G}B/s. (Closes: #249852)

bwbar (1.2-7) unstable; urgency=low

  * Fixed fscanf call in bwbar.c for longer interface names.
    (Closes: #246054)
  * Fixed README for inaccurate configuration information. (Closes: #229162)

bwbar (1.2-6) unstable; urgency=low

  * Fixed init.d message about being unconfigured. (Closes: #199202)
  * Recompiled against libpng3. (Closes: #180243)
parents 1cc34fea 34a25db3
## $Id: Makefile,v 1.2 2001/05/05 22:51:48 hpa Exp $
## $Id: Makefile.in,v 1.1 2004/01/07 20:36:41 hpa Exp $
## -----------------------------------------------------------------------
##
## Copyright 2001 H. Peter Anvin - All Rights Reserved
......@@ -13,10 +13,10 @@
PROGS = bwbar
CC = gcc
CFLAGS = -Wall -O2
LDFLAGS = -s
LIBS = -lpng
CC = cc
CFLAGS = -g -Wall -O2 -Wall -W -Wpointer-arith -Wbad-function-cast -Wstrict-prototypes -Wnested-externs -Winline -Wshadow -Wcast-align -pipe
LDFLAGS =
LIBS = -lpng -lz
all: $(PROGS)
......
## $Id: Makefile.in,v 1.1 2004/01/07 20:36:41 hpa Exp $
## -----------------------------------------------------------------------
##
## Copyright 2001 H. Peter Anvin - All Rights Reserved
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation, Inc., 675 Mass Ave, Cambridge MA 02139,
## USA; either version 2 of the License, or (at your option) any later
## version; incorporated herein by reference.
##
## -----------------------------------------------------------------------
PROGS = bwbar
CC = @CC@
CFLAGS = @CFLAGS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
all: $(PROGS)
clean:
rm -f $(PROGS)
distclean: clean
rm -f *~ \#* core
bwbar: bwbar.c
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBS)
bwbar 1.2 by H. Peter Anvin <hpa@zytor.com>
bwbar 1.2.1 by H. Peter Anvin <hpa@zytor.com>
http://www.kernel.org/pub/software/web/bwbar/
ftp://ftp.kernel.org/pub/software/web/bwbar/
......@@ -8,6 +8,11 @@ of the current bandwidth use. It is currently for Linux only.
It is used, among others, at http://www.kernel.org/.
To compile:
./configure
make
To set it up, create a script that contains the following commands:
#!/bin/sh -
......
dnl --------------------------------------------------------------------------
dnl PA_ADD_CFLAGS()
dnl
dnl Attempt to add the given option to CFLAGS, if it doesn't break compilation
dnl --------------------------------------------------------------------------
AC_DEFUN(PA_ADD_CFLAGS,
[AC_MSG_CHECKING([if $CC accepts $1])
pa_add_cflags__old_cflags="$CFLAGS"
CFLAGS="$CFLAGS $1"
AC_TRY_LINK([#include <stdio.h>],
[printf("Hello, World!\n");],
AC_MSG_RESULT([yes]),
AC_MSG_RESULT([no])
CFLAGS="$pa_add_cflags__old_cflags")])
......@@ -147,7 +147,6 @@ int write_bar_graph(FILE *f, double perc, int width, int height, int border, int
const struct option longopts[] = {
{ "input", 0, 0, 'i' },
{ "output", 0, 0, 'o' },
{ "directory", 1, 0, 'd' },
{ "text-file", 1, 0, 'f' },
{ "png-file", 1, 0, 'p' },
{ "interval", 1, 0, 't' },
......@@ -170,7 +169,6 @@ void usage(int err)
"Options: (defaults in parenthesis)\n"
" --input -i Measure input bandwidth\n"
" --output -o Measure output bandwidth (default)\n"
" --directory -d Output directory\n"
" --text-file <file> -f The name of the text output file (ubar.txt)\n"
" --png-file <file> -p The name of the graphical bar file (ubar.png)\n"
" --interval <seconds> -t The poll interval in seconds (15)\n"
......@@ -207,8 +205,6 @@ int main(int argc, char *argv[])
int measure_input = 0; /* Input instead of output */
char *text_file = "ubar.txt"; /* Text filename */
char *graphics_file = "ubar.png"; /* Graphics filename */
char *directory = ""; /* Directory name */
char *tmp_char;
char *unit_name = "Mbit/s"; /* Unit name */
double unit = 1.0e+6; /* Unit multiplier */
int interval = 15; /* Interval between measurements (s) */
......@@ -232,9 +228,6 @@ int main(int argc, char *argv[])
case 'p':
graphics_file = optarg;
break;
case 'd':
directory = optarg;
break;
case 't':
interval = atoi(optarg);
break;
......@@ -271,18 +264,6 @@ int main(int argc, char *argv[])
if ( argc-optind != 2 )
usage(1);
tmp_char = text_file;
text_file = malloc(strlen(text_file) + strlen(directory) + 5);
strcpy(text_file, directory);
strcat(text_file, "/");
strcat(text_file, tmp_char);
tmp_char = graphics_file;
graphics_file = malloc(strlen(graphics_file) + strlen(directory) + 5);
strcpy(graphics_file, directory);
strcat(graphics_file, "/");
strcat(graphics_file, tmp_char);
t_tmp = malloc(strlen(text_file) + 5);
g_tmp = malloc(strlen(graphics_file) + 5);
if ( !t_tmp || !g_tmp ) {
......
This source diff could not be displayed because it is too large. You can view the blob instead.
dnl
dnl autoconf input file to generate MCONFIG
dnl
AC_PREREQ(2.57)
AC_REVISION([$Id: configure.in,v 1.1 2004/01/07 20:36:41 hpa Exp $])
AC_INIT(Makefile.in)
AC_PROG_CC
AC_GNU_SOURCE
AC_C_CONST
AC_C_INLINE
PA_ADD_CFLAGS(-Wall)
PA_ADD_CFLAGS(-W)
PA_ADD_CFLAGS(-Wpointer-arith)
PA_ADD_CFLAGS(-Wbad-function-cast)
PA_ADD_CFLAGS(-Wcast-equal)
PA_ADD_CFLAGS(-Wstrict-prototypes)
PA_ADD_CFLAGS(-Wnested-externs)
PA_ADD_CFLAGS(-Winline)
PA_ADD_CFLAGS(-Wshadow)
PA_ADD_CFLAGS(-Wcast-align)
PA_ADD_CFLAGS(-pipe)
AC_SEARCH_LIBS(compress2, z)
AC_SEARCH_LIBS(png_init_io, png)
AC_PROG_RANLIB
AC_PROG_INSTALL
AC_OUTPUT(Makefile)
bwbar (1.2.2-3) unstable; urgency=low
* Applied patch from Adrian Reber that fixed the short flag (d) for
directory. (Closes: #260999)
-- Scott M. Dier <sdier@debian.org> Sat, 24 Jul 2004 00:20:02 -0500
bwbar (1.2.2-2) unstable; urgency=low
* Added Build-Depends on cdbs.
-- Scott M. Dier <sdier@debian.org> Tue, 8 Jun 2004 07:36:25 -0500
bwbar (1.2.2-1) unstable; urgency=low
* New upstream release (Closes: #250730)
* Converted to cdbs.
* Added patch to support {K,M,G}B/s. (Closes: #249852)
-- Scott M. Dier <sdier@debian.org> Tue, 1 Jun 2004 15:01:34 -0500
bwbar (1.2-7) unstable; urgency=low
* Fixed fscanf call in bwbar.c for longer interface names.
(Closes: #246054)
* Fixed README for inaccurate configuration information. (Closes: #229162)
-- Scott M. Dier <sdier@debian.org> Wed, 12 May 2004 01:01:48 -0500
bwbar (1.2-6) unstable; urgency=low
* Fixed init.d message about being unconfigured. (Closes: #199202)
* Recompiled against libpng3. (Closes: #180243)
-- Scott M. Dier <sdier@debian.org> Wed, 10 Dec 2003 20:44:05 -0600
bwbar (1.2-5) unstable; urgency=low
* Fixed that I didn't reperm the init.d script, this causes issues
......
......@@ -2,13 +2,13 @@ Source: bwbar
Section: net
Priority: optional
Maintainer: Scott M. Dier <sdier@debian.org>
Build-Depends: debhelper (>> 3.0.0), libpng2-dev
Standards-Version: 3.5.2
Build-Depends: debhelper (>> 3.0.0), libpng12-dev, cdbs
Standards-Version: 3.5.10
Package: bwbar
Architecture: any
Depends: ${shlibs:Depends}
Description: Generates text and graphical readout of current bandwidth use.
Description: generates text and graphical readout of current bandwidth use
This program will output a PNG and a text file that can be used in scripts
or be included in web pages to show current bandwidth usage. The amount
of total bandwidth can be customized. The PNG output appears as a bar graph
......
......@@ -3,7 +3,7 @@ Sun, 30 Sep 2001 23:35:14 -0500.
It was downloaded from http://www.kernel.org/pub/software/web/bwbar/
Upstream Author(s): Peter Anvin <hpa@zytor.com>
Upstream Author: Peter Anvin <hpa@zytor.com>
Copyright:
......
usr/sbin
etc/init.d
etc/default
......@@ -3,30 +3,49 @@
# for the bwbar package
# Scott Dier <sdier@debian.org>
if [ -r /etc/default/bwbar ]; then
. /etc/default/bwbar
fi
# delete/comment the following two lines when configured.
echo "/etc/init.d/bwbar isn't configured yet, not starting bwbar."
exit 0
#echo "/etc/init.d/bwbar isn't configured yet, not starting bwbar."
#exit 0
# default settings are suggestions, they may or may not fit your situation
RUNME=/usr/sbin/bwbar
DIR=/var/www
RUNAS=www-data
OPTIONS="eth0 1.5"
#DIR=/var/www
#RUNAS=www-data
#OPTIONS="eth0 1.5"
[ -x $RUNME ] || exit 0
#[ -x $RUNME ] || exit 0
case "$1" in
start)
if [ -z "$DIR" -a -z "$RUNAS" -a -z "$OPTIONS" ]
then
echo "not starting bwbar, please edit /etc/default/bwbar"
exit 0
fi
echo -n "Starting bwbar: "
start-stop-daemon --start -b -c $RUNAS --exec $RUNME -- --directory=$DIR $OPTIONS
echo "done."
;;
stop)
if [ -z "$DIR" -a -z "$RUNAS" -a -z "$OPTIONS" ]
then
exit 0
fi
echo -n "Stopping bwbar: "
start-stop-daemon --stop -u $RUNAS --exec $RUNME
echo "done."
;;
restart|force-reload)
if [ -z "$DIR" -a -z "$RUNAS" -a -z "$OPTIONS" ]
then
echo "not starting bwbar, please edit /etc/default/bwbar"
exit 0
fi
echo -n "Restarting bwbar: "
start-stop-daemon --stop -u $RUNAS --exec $RUNME
sleep 1
......
# Directory to put files into
#DIR=/var/www
# Who to run as
#RUNAS=www-data
# What are the options (eth0, scale of 1.5mbps)
#OPTIONS="eth0 1.5"
#!/bin/sh
cp bwbar debian/bwbar/usr/sbin/
cp debian/otherfiles/bwbar debian/bwbar/etc/init.d/
cp debian/otherfiles/bwbar-default debian/bwbar/etc/default/bwbar
chmod 755 debian/bwbar/etc/init.d/bwbar
--- ./bwbar.c 2001-09-21 17:33:35.000000000 -0500
+++ ../bwbar-1.2/bwbar.c 2003-12-10 20:43:59.000000000 -0600
@@ -147,6 +147,7 @@
const struct option longopts[] = {
{ "input", 0, 0, 'i' },
{ "output", 0, 0, 'o' },
+ { "directory", 1, 0, 'd' },
{ "text-file", 1, 0, 'f' },
{ "png-file", 1, 0, 'p' },
{ "interval", 1, 0, 't' },
@@ -169,6 +170,7 @@
"Options: (defaults in parenthesis)\n"
" --input -i Measure input bandwidth\n"
" --output -o Measure output bandwidth (default)\n"
+ " --directory -d Output directory\n"
" --text-file <file> -f The name of the text output file (ubar.txt)\n"
" --png-file <file> -p The name of the graphical bar file (ubar.png)\n"
" --interval <seconds> -t The poll interval in seconds (15)\n"
@@ -205,6 +207,8 @@
int measure_input = 0; /* Input instead of output */
char *text_file = "ubar.txt"; /* Text filename */
char *graphics_file = "ubar.png"; /* Graphics filename */
+ char *directory = ""; /* Directory name */
+ char *tmp_char;
char *unit_name = "Mbit/s"; /* Unit name */
double unit = 1.0e+6; /* Unit multiplier */
int interval = 15; /* Interval between measurements (s) */
@@ -214,7 +218,7 @@
program = argv[0];
- while ( (opt = getopt_long(argc, argv, "iof:p:t:x:y:b:kMGh", longopts, NULL)) != -1 ) {
+ while ( (opt = getopt_long(argc, argv, "iof:p:t:x:y:b:kMGhd:", longopts, NULL)) != -1 ) {
switch ( opt ) {
case 'i':
measure_input = 1;
@@ -228,6 +232,9 @@
case 'p':
graphics_file = optarg;
break;
+ case 'd':
+ directory = optarg;
+ break;
case 't':
interval = atoi(optarg);
break;
@@ -264,6 +271,18 @@
if ( argc-optind != 2 )
usage(1);
+ tmp_char = text_file;
+ text_file = malloc(strlen(text_file) + strlen(directory) + 5);
+ strcpy(text_file, directory);
+ strcat(text_file, "/");
+ strcat(text_file, tmp_char);
+
+ tmp_char = graphics_file;
+ graphics_file = malloc(strlen(graphics_file) + strlen(directory) + 5);
+ strcpy(graphics_file, directory);
+ strcat(graphics_file, "/");
+ strcat(graphics_file, tmp_char);
+
t_tmp = malloc(strlen(text_file) + 5);
g_tmp = malloc(strlen(graphics_file) + 5);
if ( !t_tmp || !g_tmp ) {
--- bwbar.c 2004-06-01 14:54:12.000000000 -0500
+++ ../tmp/bwbar-1.2/bwbar.c 2004-05-12 00:58:50.000000000 -0500
@@ -315,7 +315,7 @@
/* Get interface info */
do {
- if ( fscanf(pnd, " %6[^:]:%u %u %u %u %u %u %u %u %u %u %u %u %u %u %u %u",
+ if ( fscanf(pnd, " %8[^:]:%u %u %u %u %u %u %u %u %u %u %u %u %u %u %u %u",
ifc.name,
&ifc.r_bytes, &ifc.r_pkt, &ifc.r_err, &ifc.r_drop,
&ifc.r_fifo, &ifc.r_frame, &ifc.r_compr, &ifc.r_mcast,
diff -u bwbar-1.2.orig/bwbar.c bwbar-1.2/bwbar.c
--- bwbar-1.2.orig/bwbar.c 2004-05-19 16:36:16.000000000 +0200
+++ bwbar-1.2/bwbar.c 2004-05-19 16:38:12.000000000 +0200
@@ -157,6 +157,9 @@
{ "kbps", 0, 0, 'k' },
{ "Mbps", 0, 0, 'M' },
{ "Gbps", 0, 0, 'G' },
+ { "KBps", 0, 0, 'K' },
+ { "MBps", 0, 0, 'm' },
+ { "GBps", 0, 0, 'g' },
{ "help", 0, 0, 'h' },
{ 0, 0, 0, 0 }
};
@@ -180,6 +183,9 @@
" --kbps -k Bandwidth is measured in kbit/s\n"
" --Mbps -M Bandwidth is measured in Mbit/s (default)\n"
" --Gbps -G Bandwidth is measured in Gbit/s\n"
+ " --KBps -K Bandwidth is measured in KB/s\n"
+ " --MBps -m Bandwidth is measured in MB/s\n"
+ " --GBps -g Bandwidth is measured in GB/s\n"
" --help -h Display this text\n",
program);
exit(err);
@@ -259,6 +265,18 @@
unit = 1.0e+9;
unit_name = "Gbit/s";
break;
+ case 'K':
+ unit = 8.0e+3;
+ unit_name = "KB/s";
+ break;
+ case 'm':
+ unit = 8.0e+6;
+ unit_name = "MB/s";
+ break;
+ case 'g':
+ unit = 8.0e+9;
+ unit_name = "GB/s";
+ break;
case 'h':
usage(0);
break;
Common subdirectories: bwbar-1.2.orig/debian and bwbar-1.2/debian
diff -u bwbar-1.2.orig/README bwbar-1.2/README
--- bwbar-1.2.orig/README 2004-05-19 16:36:16.000000000 +0200
+++ bwbar-1.2/README 2004-05-19 16:38:14.000000000 +0200
@@ -54,6 +54,7 @@
Options: (defaults in parenthesis)
--input -i Measure input bandwidth
--output -o Measure output bandwidth (default)
+ --directory -d Output directory
--text-file <file> -f The name of the text output file (ubar.txt)
--png-file <file> -p The name of the graphical bar file (ubar.png)
--interval <seconds> -t The poll interval in seconds (15)
@@ -63,4 +64,8 @@
--kbps -k Bandwidth is measured in kbit/s
--Mbps -M Bandwidth is measured in Mbit/s (default)
--Gbps -G Bandwidth is measured in Gbit/s
+ --KBps -K Bandwidth is measured in KB/s
+ --MBps -m Bandwidth is measured in MB/s
+ --GBps -g Bandwidth is measured in GB/s
--help -h Display this text
+
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk
# This is the debhelper compatability version to use.
export DH_COMPAT=3
DEB_MAKE_INSTALL_TARGET = ""
configure: configure-stamp
configure-stamp:
dh_testdir
# Add here commands to configure the package.
touch configure-stamp
build: configure-stamp build-stamp
build-stamp:
dh_testdir
# Add here commands to compile the package.
$(MAKE)
#/usr/bin/docbook-to-man debian/bwbar.sgml > bwbar.1
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
# Add here commands to clean up after the build process.
-$(MAKE) clean
dh_clean
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
# Add here commands to install the package into debian/bwbar.
#$(MAKE) install DESTDIR=$(CURDIR)/debian/bwbar
common-install-arch common-install-indep:: common-install-impl
common-install-impl::
cp $(CURDIR)/bwbar $(CURDIR)/debian/bwbar/usr/sbin/
cp $(CURDIR)/debian/otherfiles/bwbar $(CURDIR)/debian/bwbar/etc/init.d/
cp $(CURDIR)/debian/otherfiles/bwbar-default $(CURDIR)/debian/bwbar/etc/default/bwbar
chmod 755 $(CURDIR)/debian/bwbar/etc/init.d/bwbar
# Build architecture-independent files here.
binary-indep: build install
# We have nothing to do by default.
# Build architecture-dependent files here.
binary-arch: build install
dh_testdir
dh_testroot
# dh_installdebconf
dh_installdocs
dh_installexamples
dh_installmenu
# dh_installlogrotate
# dh_installemacsen
# dh_installpam
# dh_installmime
# dh_installinit
dh_installcron
dh_installman
dh_installinfo
dh_undocumented
dh_installchangelogs
dh_link
dh_strip
dh_compress
dh_fixperms
# dh_makeshlibs
dh_installdeb
# dh_perl
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure
#! /bin/sh
#
# install - install a program, script, or datafile
# This comes from X11R5.
#
# Calling this script install-sh is preferred over install.sh, to prevent
# `make' implicit rules from creating a file called install from it
# when there is no Makefile.
#
# This script is compatible with the BSD install script, but was written
# from scratch.
#
# set DOITPROG to echo to test this script
# Don't use :- since 4.3BSD and earlier shells don't like it.
doit="${DOITPROG-}"
# put in absolute paths if you don't have them in your path; or use env. vars.
mvprog="${MVPROG-mv}"
cpprog="${CPPROG-cp}"
chmodprog="${CHMODPROG-chmod}"
chownprog="${CHOWNPROG-chown}"
chgrpprog="${CHGRPPROG-chgrp}"
stripprog="${STRIPPROG-strip}"
rmprog="${RMPROG-rm}"
mkdirprog="${MKDIRPROG-mkdir}"
tranformbasename=""
transform_arg=""
instcmd="$mvprog"
chmodcmd="$chmodprog 0755"
chowncmd=""
chgrpcmd=""
stripcmd=""
rmcmd="$rmprog -f"
mvcmd="$mvprog"
src=""
dst=""
dir_arg=""
while [ x"$1" != x ]; do
case $1 in
-c) instcmd="$cpprog"
shift
continue;;
-d) dir_arg=true
shift
continue;;
-m) chmodcmd="$chmodprog $2"
shift
shift
continue;;
-o) chowncmd="$chownprog $2"
shift
shift
continue;;
-g) chgrpcmd="$chgrpprog $2"
shift
shift
continue;;
-s) stripcmd="$stripprog"
shift
continue;;
-t=*) transformarg=`echo $1 | sed 's/-t=//'`
shift
continue;;
-b=*) transformbasename=`echo $1 | sed 's/-b=//'`
shift
continue;;
*) if [ x"$src" = x ]
then
src=$1
else
# this colon is to work around a 386BSD /bin/sh bug
:
dst=$1
fi
shift
continue;;
esac
done
if [ x"$src" = x ]
then
echo "install: no input file specified"
exit 1
else
true
fi
if [ x"$dir_arg" != x ]; then
dst=$src
src=""
if [ -d $dst ]; then
instcmd=:
else
instcmd=mkdir
fi
else
# Waiting for this to be detected by the "$instcmd $src $dsttmp" command
# might cause directories to be created, which would be especially bad
# if $src (and thus $dsttmp) contains '*'.
if [ -f $src -o -d $src ]
then
true
else
echo "install: $src does not exist"
exit 1
fi
if [ x"$dst" = x ]
then
echo "install: no destination specified"
exit 1
else
true
fi
# If destination is a directory, append the input filename; if your system
# does not like double slashes in filenames, you may need to add some logic
if [ -d $dst ]
then
dst="$dst"/`basename $src`
else
true
fi
fi
## this sed command emulates the dirname command
dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
# Make sure that the destination directory exists.
# this part is taken from Noah Friedman's mkinstalldirs script
# Skip lots of stat calls in the usual case.
if [ ! -d "$dstdir" ]; then
defaultIFS='
'
IFS="${IFS-${defaultIFS}}"
oIFS="${IFS}"
# Some sh's can't handle IFS=/ for some reason.
IFS='%'
set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'`
IFS="${oIFS}"
pathcomp=''
while [ $# -ne 0 ] ; do
pathcomp="${pathcomp}${1}"
shift
if [ ! -d "${pathcomp}" ] ;
then
$mkdirprog "${pathcomp}"
else
true
fi
pathcomp="${pathcomp}/"
done
fi
if [ x"$dir_arg" != x ]
then
$doit $instcmd $dst &&
if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi &&
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi &&
if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi &&
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi
else
# If we're going to rename the final executable, determine the name now.
if [ x"$transformarg" = x ]
then
dstfile=`basename $dst`
else
dstfile=`basename $dst $transformbasename |
sed $transformarg`$transformbasename
fi
# don't allow the sed command to completely eliminate the filename
if [ x"$dstfile" = x ]
then
dstfile=`basename $dst`
else
true
fi
# Make a temp file name in the proper directory.
dsttmp=$dstdir/#inst.$$#
# Move or copy the file name to the temp name