Debian Codegraph @

doc/rename.sh

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`.
2 # The ac252 package renames the entries in an info directory section to avoid
3 # install-time conflict with the regular autoconf package. Newer versions of
4 # install-info have a "--name" option which appears simpler, but does not solve
5 # this particular problem -T.E.Dickey
6 SRC=`echoscip-shell system . . echo. "$1" | sedscip-shell system . . sed. -e 's,^./,,'`
7 DST=`echoscip-shell system . . echo. "$2" | sedscip-shell system . . sed. -e 's,^./,,'`
8 SRC_NAME=`basenamescip-shell system . . basename. $SRC .info`
9 DST_NAME=`basenamescip-shell system . . basename. $DST .info`
10 if testscip-shell system . . test. "$SRC_NAME" != "$DST_NAME"
11 then
12 PREFIX=`echoscip-shell system . . echo. "$DST_NAME" | sedscip-shell system . . sed. -e "s/$SRC_NAME.*$//"`
13 SUFFIX=`echoscip-shell system . . echo. "$DST_NAME" | sedscip-shell system . . sed. -e "s/^.*$SRC_NAME//"`
14
15 sedscip-shell system . . sed. -e "s/^\*[ ]*\([^ ][^ ]*\):[ ]*($SRC_NAME)\(.\)/* $PREFIX\1$SUFFIX: ($DST_NAME)\2/" <$SRC | \
16 sed -e "s/^This is $SRC_NAME\.info,/This is $DST_NAME.info,/" |
17 sedscip-shell system . . sed. -e "s/^File:[ ]*$SRC_NAME\.info/File: $DST_NAME.info/" >$DST
18 elif testscip-shell system . . test. "$SRC" != "$DST"
19 then
20 catscip-shell system . . cat. $SRC >$DST
21 fi