From 453be3b530cce4209f8870a974840270454a209e Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Mon, 2 Aug 2010 16:09:19 +0000 Subject: [PATCH] rename nm and strip to acknm and ackstrip this is to force invocations of these utils for ack to be explicitly named such, so in the future binutils can be installed in /usr/pkg without the g- prefix. --- commands/Makefile | 4 ++-- commands/{nm => acknm}/Makefile | 2 +- commands/{nm/nm.c => acknm/acknm.c} | 0 commands/{strip => ackstrip}/Makefile | 2 +- commands/{strip/strip.c => ackstrip/ackstrip.c} | 0 commands/datasizes/datasizes.sh | 2 +- commands/profile/sprofalyze.pl | 2 +- commands/unstack/unstack.sh | 4 ++-- 8 files changed, 8 insertions(+), 8 deletions(-) rename commands/{nm => acknm}/Makefile (70%) rename commands/{nm/nm.c => acknm/acknm.c} (100%) rename commands/{strip => ackstrip}/Makefile (65%) rename commands/{strip/strip.c => ackstrip/ackstrip.c} (100%) diff --git a/commands/Makefile b/commands/Makefile index f8dcf6614..b0c66f9ed 100644 --- a/commands/Makefile +++ b/commands/Makefile @@ -18,14 +18,14 @@ SUBDIR= aal add_route adduser advent arp ash at autil awk \ less lex life loadkeys loadramdisk logger login look lp \ lpd ls lspci M m4 mail make MAKEDEV man \ mdb mdocml mesg mined mkdep mkdir mkdist mkfifo mkfs mknod \ - mkproto modem mount mt netconf newroot nice nm nohup \ + mkproto modem mount mt netconf newroot nice acknm nohup \ nonamed od packit packman passwd paste patch pax \ ping postinstall poweroff pr prep printf printroot \ profile progressbar proto pr_routes ps pwd pwdauth \ ramdisk rarpd rawspeed rcp rdate readall readclock \ readfs reboot remsync rev rget rlogin rlogind rmdir \ rotate rsh rshd sed service setup shar size \ - sleep slip sort spell split srccrc stat strings strip \ + sleep slip sort spell split srccrc stat strings ackstrip \ stty su sum svclog swapfs swifi sync synctree sysenv \ syslogd tail talk talkd tar tcpd tcpdp tcpstat tee telnet \ telnetd term termcap tget time tinyhalt top touch tr \ diff --git a/commands/nm/Makefile b/commands/acknm/Makefile similarity index 70% rename from commands/nm/Makefile rename to commands/acknm/Makefile index 0ecdc98a5..45bc16fbc 100644 --- a/commands/nm/Makefile +++ b/commands/acknm/Makefile @@ -1,4 +1,4 @@ -PROG= nm +PROG= acknm MAN= .include diff --git a/commands/nm/nm.c b/commands/acknm/acknm.c similarity index 100% rename from commands/nm/nm.c rename to commands/acknm/acknm.c diff --git a/commands/strip/Makefile b/commands/ackstrip/Makefile similarity index 65% rename from commands/strip/Makefile rename to commands/ackstrip/Makefile index 1e28f4cd2..beb0cb0a8 100644 --- a/commands/strip/Makefile +++ b/commands/ackstrip/Makefile @@ -1,4 +1,4 @@ -PROG= strip +PROG= ackstrip MAN= .include diff --git a/commands/strip/strip.c b/commands/ackstrip/ackstrip.c similarity index 100% rename from commands/strip/strip.c rename to commands/ackstrip/ackstrip.c diff --git a/commands/datasizes/datasizes.sh b/commands/datasizes/datasizes.sh index fa97833c5..2c45a672d 100644 --- a/commands/datasizes/datasizes.sh +++ b/commands/datasizes/datasizes.sh @@ -8,7 +8,7 @@ fi if file $1 | grep NSYM >/dev/null 2>&1; then NM="gnm --radix=d" else - NM="nm -d" + NM="acknm -d" fi $NM -n $1 | grep ' [bBdD] [^.]' | awk '{ if (lastpos) printf "%10ld kB %s\n", ($1-lastpos)/1024, lastname; lastpos=$1; lastname=$3 }' | sort -n diff --git a/commands/profile/sprofalyze.pl b/commands/profile/sprofalyze.pl index 87591e10a..3e6cca63d 100755 --- a/commands/profile/sprofalyze.pl +++ b/commands/profile/sprofalyze.pl @@ -12,7 +12,7 @@ # Configuration options: # Location and parameters of nm program to extract symbol tables -$nm = "/usr/bin/nm -dn"; +$nm = "/usr/bin/acknm -dn"; # Location of src (including trailing /) $src_root = qw( diff --git a/commands/unstack/unstack.sh b/commands/unstack/unstack.sh index cc6eb49df..648f76092 100644 --- a/commands/unstack/unstack.sh +++ b/commands/unstack/unstack.sh @@ -5,12 +5,12 @@ then echo "Usage: $0 [0x... [0x... ] ]" exit 1 fi -PATH=$PATH:/usr/gnu/bin +PATH=$PATH:/usr/gnu/bin:/usr/pkg/bin if file $1 | grep NSYM >/dev/null 2>&1; then NM="gnm --radix=d" else - NM="nm -d" + NM="acknm -d" fi executable=$1 -- 2.44.0