* qualname.pl.in: Renamed old qualname to here as perl path needs
authorEzra Peisach <epeisach@mit.edu>
Thu, 26 Sep 1996 15:47:49 +0000 (15:47 +0000)
committerEzra Peisach <epeisach@mit.edu>
Thu, 26 Sep 1996 15:47:49 +0000 (15:47 +0000)
updating.

* Makefile.in (GEN_SCRIPTS): Add qualname.pl

* start_servers_local, env-setup.sh (QUALNAME): Replace with
qualname.pl.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9118 dc483132-0cff-0310-8789-dd5450dbe970

src/kadmin/testing/scripts/ChangeLog
src/kadmin/testing/scripts/Makefile.in
src/kadmin/testing/scripts/env-setup.sh
src/kadmin/testing/scripts/env-setup.shin
src/kadmin/testing/scripts/qualname.pl.in [moved from src/kadmin/testing/scripts/qualname with 100% similarity]
src/kadmin/testing/scripts/qualname.plin [new file with mode: 0644]
src/kadmin/testing/scripts/start_servers_local

index 6a7a0976823087aa02595cff219f0c3a83f87d4b..df7176939d29505f80faa439d939612638039f34 100644 (file)
@@ -1,3 +1,13 @@
+Thu Sep 26 11:45:56 1996  Ezra Peisach  <epeisach@kangaroo.mit.edu>
+
+       * qualname.pl.in: Renamed old qualname to here as perl path needs
+               updating. 
+
+       * Makefile.in (GEN_SCRIPTS): Add qualname.pl
+
+       * start_servers_local, env-setup.sh (QUALNAME): Replace with
+               qualname.pl. 
+
 Tue Sep 24 13:28:54 1996  Barry Jaspan  <bjaspan@mit.edu>
 
        * create Makefile.in and configure.in
index 38d82c5ea38c2a966e9002331954e1de98dd50ef..ef4531702b1c8ff92812efd1fd83ec764e202942 100644 (file)
@@ -2,11 +2,12 @@
 PERL   = /usr/athena/bin/perl
 
 GEN_SCRIPTS = compare_dump.pl fixup-conf-files.pl make-host-keytab.pl \
-       simple_dump.pl verify_xrunner_report.pl
+       simple_dump.pl verify_xrunner_report.pl qualname.pl
 
 all:: $(GEN_SCRIPTS) restore_files.sh
 
 restore_files.sh:
+       rm -f restore_files.sh
        ln -s save_files.sh restore_files.sh
 
 %.pl: %.pl.in
index fd5b51ced59a3d05a0e40fbb77969546405ebeda..dd6837b742f38cb70ce1bbe8a4a1f456692572b3 100644 (file)
@@ -31,7 +31,7 @@ TCLUTIL=$TESTDIR/tcl/util.t; export TCLUTIL
 BSDDB_DUMP=$TESTDIR/util/bsddb_dump; export BSDDB_DUMP
 CLNTTCL=$TESTDIR/util/ovsec_kadm_clnt_tcl; export CLNTTCL
 SRVTCL=$TESTDIR/util/ovsec_kadm_srv_tcl; export SRVTCL
-QUALNAME=$TOP/inst-scripts/qualname; export QUALNAME
+QUALNAME=$TOP/inst-scripts/qualname.pl; export QUALNAME
 
 START_SERVERS=$TESTDIR/scripts/start_servers $TEST_SERVER
 export START_SERVERS
index fd5b51ced59a3d05a0e40fbb77969546405ebeda..dd6837b742f38cb70ce1bbe8a4a1f456692572b3 100644 (file)
@@ -31,7 +31,7 @@ TCLUTIL=$TESTDIR/tcl/util.t; export TCLUTIL
 BSDDB_DUMP=$TESTDIR/util/bsddb_dump; export BSDDB_DUMP
 CLNTTCL=$TESTDIR/util/ovsec_kadm_clnt_tcl; export CLNTTCL
 SRVTCL=$TESTDIR/util/ovsec_kadm_srv_tcl; export SRVTCL
-QUALNAME=$TOP/inst-scripts/qualname; export QUALNAME
+QUALNAME=$TOP/inst-scripts/qualname.pl; export QUALNAME
 
 START_SERVERS=$TESTDIR/scripts/start_servers $TEST_SERVER
 export START_SERVERS
diff --git a/src/kadmin/testing/scripts/qualname.plin b/src/kadmin/testing/scripts/qualname.plin
new file mode 100644 (file)
index 0000000..3d047c5
--- /dev/null
@@ -0,0 +1,18 @@
+#!/afs/athena/contrib/perl/p
+
+if ($#ARGV == -1) {
+    chop($hostname = `hostname`);
+} else {
+    $hostname = $ARGV[0];
+}
+
+if (! (($type,$addr) = (gethostbyname($hostname))[2,4])) {
+    print STDERR "No such host: $hostname\n";
+    exit(1);
+}
+if (! ($qualname = (gethostbyaddr($addr,$type))[0])) {
+    print STDERR "No address information for host $hostname\n";
+    exit(1);
+}
+print "$qualname\n";
+
index a9c8e795708903aa2f455309736d449b3190a6fa..17deebad6e026b0794ec8834f9a2eb6622126d55 100644 (file)
@@ -93,7 +93,7 @@ fi
 # allow admin to krlogin as root (for cleanup)
 DUMMY=${REALM=SECURE-TEST.OV.COM}; export REALM
 hostname=`hostname`
-QUALNAME=`$TOP/testing/scripts/qualname $hostname`; export QUALNAME
+QUALNAME=`$TOP/testing/scripts/qualname.pl $hostname`; export QUALNAME
 
 eval $SRVTCL <<'EOF' $REDIRECT
 source $env(TOP)/testing/tcl/util.t