chiark / gitweb /
*** empty log message ***
authorjames <james>
Wed, 27 Feb 2008 16:01:24 +0000 (16:01 +0000)
committerjames <james>
Wed, 27 Feb 2008 16:01:24 +0000 (16:01 +0000)
Makefile.am
apps/sympathy.c
apps/usage.c
maintainer/tag
sympathy.1 [new file with mode: 0644]

index e341690d3e8f4f0d58fb19a8b3d1e981c22144b4..b82e0684fcf7312c43a5c7a436bd18458cbfd4d3 100644 (file)
@@ -8,6 +8,9 @@
 # $Id$
 #
 # $Log$
+# Revision 1.6  2008/02/27 16:01:24  james
+# *** empty log message ***
+#
 # Revision 1.5  2008/02/27 15:17:55  james
 # *** empty log message ***
 #
@@ -35,8 +38,8 @@ bin_SCRIPTS = libsympathy-config
 clean-local:
        -rm -f libsympathy-config version.sed sympathy.man
 
-sympathy.man: sympathy.man.src version.sed 
-       @SED@ -f version.sed < sympathy.man.src > sympathy.man || rm -f sympathy.man
+sympathy.man: sympathy.1 version.sed 
+       @SED@ -f version.sed < sympathy.1 > sympathy.man || rm -f sympathy.man
 
 
 libsympathy-config.src:libsympathy-config.src.in
@@ -50,7 +53,7 @@ VF=${shell cat ${VFD}/version-files}
 VFS=${VF:%=${VFD}/%}
 VCHK=${shell cat ${VFS} | @MD5SUM@ | @AWK@ '{print $$1 }' }
 VNUM=${shell @GREP@ ${VCHK} ${VFD}/version-md5sums | @AWK@ '{ print $$2 }'  }
-VSTP=${shell @GREP@ ${VCHK} ${VFD}/version-stamps  | @AWK@ '{ print $$2 }'  }
+VSTP=${shell @GREP@ ${VCHK} ${VFD}/version-stamps  | @AWK@  'BEGIN { FS="\t" }; { print $$2 }'  }
 VDEF=${shell echo `cat ${VFD}/version-major`.`cat ${VFD}/version-minor`.`cat ${VFD}/version-micro` }
 
 EXTRA_DIST=version-files version-major version-minor version-micro version-md5sums version-stamps
@@ -60,10 +63,12 @@ version.sed: $(VFD)/version-files $(VFD)/version-major \
        $(VFD)/version-md5sums $(VFD)/version-stamps ${VFS} Makefile
        if [ .${VNUM} = . ]; then \
                echo "s/%VERSION%/${VDEF}-E/g" > version.sed; \
-               echo "s/%VERSION%/After ${VSTP}/g" > version.sed; \
+               echo "s/%VERSIONSTAMP%/After ${VSTP}/g" >> version.sed; \
+               echo "s/%LONGVERSION%/libsympathy version ${VNUM} + Edits/g" >> version.sed; \
        else \
                echo "s/%VERSION%/${VNUM}/g" > version.sed; \
-               echo "s/%VERSIONSTAMP%/${VSTP}/g" > version.sed; \
+               echo "s/%VERSIONSTAMP%/${VSTP}/g" >> version.sed; \
+               echo "s/%LONGVERSION%/libsympathy version ${VNUM}/g" >> version.sed; \
        fi
 
 protos:
index 6e869be9349028a24bc669b76019e04de786bfe1..89cc552d0fdd07d81978833a1999ffd9d4a38958 100644 (file)
@@ -11,6 +11,9 @@ static char rcsid[] =
 
 /*
  * $Log$
+ * Revision 1.21  2008/02/27 16:01:24  james
+ * *** empty log message ***
+ *
  * Revision 1.20  2008/02/27 10:00:34  james
  * *** empty log message ***
  *
@@ -355,12 +358,16 @@ main (int argc, char *argv[])
   /*Fold -r into -c */
   if (oflags['r'])
     {
-      int id = safe_atoi (oargs['r']);
+      char *id = oargs['r'];
       if (id < 0)
         fatal_moan ("cannot parse -r %s as an integer", oargs['r']);
 
       oflags['k']++;
-      oargs['k'] = mome ("/.sympathy/%s%d", hostname, id);
+      if (safe_atoi(id)>0) {
+       oargs['k'] = mome ("/.sympathy/%s%d", hostname, safe_atoi(id));
+      } else {
+       oargs['k'] = mome ("/.sympathy/%s", id);
+      }
       oflags['r'] = 0;
       oflags['c']++;
     }
index d06bf054f085e72f0416432f823ebdb59d14c767..5a00619e769636e8359b76d9c2ef97575111474d 100644 (file)
@@ -10,6 +10,9 @@ static char rcsid[] = "$Id$";
 
 /*
  * $Log$
+ * Revision 1.15  2008/02/27 16:01:24  james
+ * *** empty log message ***
+ *
  * Revision 1.14  2008/02/27 09:55:57  james
  * *** empty log message ***
  *
@@ -83,7 +86,8 @@ usage (void)
            "            incompatible with -F. This is the default mode\n"
            "   -c     client mode: connect to server mode process\n"
            "   -r id  client mode: connect to server mode process on socket\n"
-           "             ~/.sympathy/id\n"
+           "             ~/.sympathy/id or ~/.sympathy/hostname.id if id is an\n"
+           "             integer\n"
            "   -l or -ls  list active sockets in ~/.sympathy\n"
            "   -v   show version\n"
            "   -h   show help\n"
index fb3a72cb97d7831c41bc06758bea29b2b7b806ae..85709f23f5d548df2dfc6107312b41c1f19d4bfe 100755 (executable)
@@ -8,6 +8,9 @@
 # $Id$
 #
 # $Log$
+# Revision 1.5  2008/02/27 16:01:25  james
+# *** empty log message ***
+#
 # Revision 1.4  2008/02/27 15:17:56  james
 # *** empty log message ***
 #
@@ -44,7 +47,7 @@ echo $MICRO > version-micro
 STP=`date '+"%B %d, %Y"'`
 
 echo "$CHK     ${MAJOR}.${MINOR}.${MICRO}" >> version-md5sums
-echo "$STP     ${MAJOR}.${MINOR}.${MICRO}" >> version-stamps
+echo "$CHK     $STP" >> version-stamps
 
 cvs commit -m ""
 cvs tag libsympathy-${MAJOR}_${MINOR}_${MICRO} .
diff --git a/sympathy.1 b/sympathy.1
new file mode 100644 (file)
index 0000000..06afdbc
--- /dev/null
@@ -0,0 +1,29 @@
+.TH sympathy 1  "%VERSIONSTAMP%" "%LONGVERSION%" "USER COMMANDS"
+.SH NAME
+sympathy \- client/server terminal emulator with logging
+.SH SYNOPSIS
+.\"           "sympathy -t      [-K] [-d serialdev|-p] [-b baud] [-f] [-L log] [-u]\n"
+.\"           "sympathy -s      [-K] [-d serialdev|-p] [-b baud] [-f] [-L log] [-u] [-k skt]\n"
+.\"           "                      [-n hlines] [-w WxH] [-F]\n"
+.\"           "sympathy [-s -c] [-K] [-d serialdev|-p] [-b baud] [-f] [-L log] [-u] [-k skt]\n"
+.\"           "                      [-n hlines] [-w WxH]\n"
+.\"           "sympathy -c      [-H] [-u] -k skt\n"
+.\"           "sympathy -r id   [-H] [-u]\n"
+.\"           "sympathy {-l|-ls}\n"
+.\"           "sympathy -v\n"
+.\"           "sympathy -h\n"
+
+.SH DESCRIPTION
+.SH OPTIONS
+.SH EXIT STATUS
+.SH ENVIRONMENT
+.SH FILES
+.SH EXAMPLES
+.SH ERRORS
+.SH SEE ALSO
+screen(1) minicom(1) consolidate(1)
+.SH STANDARDS
+.SH BUGS
+.SH SECURITY CONSIDERATIONS
+.SH AUTHOR
+.\" vi: set syn=groff