home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sources / misc / 4072 < prev    next >
Encoding:
Text File  |  1992-11-09  |  6.5 KB  |  245 lines

  1. Newsgroups: comp.sources.misc
  2. Path: sparky!kent
  3. From: dfs@doe.carleton.ca (David F. Skoll)
  4. Subject:  v33i067:  remind - A replacement for calendar, Part10/12
  5. Message-ID: <1992Nov10.042019.1361@sparky.imd.sterling.com>
  6. Followup-To: comp.sources.d
  7. X-Md4-Signature: 5b0af45ebd26340ffc7388b2498387b2
  8. Sender: kent@sparky.imd.sterling.com (Kent Landfield)
  9. Organization: Dept. of Electronics, Carleton University
  10. References: <csm-v33i058=remind.221714@sparky.IMD.Sterling.COM>
  11. Date: Tue, 10 Nov 1992 04:20:19 GMT
  12. Approved: kent@sparky.imd.sterling.com
  13. Lines: 230
  14.  
  15. Submitted-by: dfs@doe.carleton.ca (David F. Skoll)
  16. Posting-number: Volume 33, Issue 67
  17. Archive-name: remind/part10
  18. Environment: UNIX, MS-DOS
  19. Supersedes: remind: Volume 17, Issue 3-6
  20.  
  21. #!/bin/sh
  22. # This is part 10 of Remind 03.00.00
  23. if touch 2>&1 | fgrep 'amc' > /dev/null
  24.  then TOUCH=touch
  25.  else TOUCH=true
  26. fi
  27. # ============= Makefile ==============
  28. if test X"$1" != X"-c" -a -f 'Makefile'; then
  29.     echo "File already exists: skipping 'Makefile'"
  30. else
  31. echo "x - extracting Makefile (Text)"
  32. sed 's/^X//' << 'SHAR_EOF' > Makefile &&
  33. X# Makefile for REMIND
  34. X
  35. X#-----------------------------------------------------------------------------
  36. X# THINGS FOR YOU TO EDIT START BELOW
  37. X#-----------------------------------------------------------------------------
  38. X
  39. X# Uncomment the next line if you are running on a SYSV system
  40. X# SYSV= -DSYSV
  41. X
  42. X# Uncomment the next line if you are running on any type of UNIX system
  43. XUNIX= -DUNIX
  44. X
  45. X# Uncomment the next line if you want to use gcc instead of default compiler
  46. XCC= gcc
  47. X
  48. X# Put any additional flags for the C compiler here
  49. XCFLAGS= -O -ansi
  50. XCDEFS=
  51. X
  52. X#-----------------------------------------------------------------------------
  53. X# YOU SHOULDN'T EDIT ANYTHING BELOW HERE.  You may want to change some things
  54. X# in config.h; then, you should be able to type 'make'.
  55. X#-----------------------------------------------------------------------------
  56. XVERSION= 03.00.00
  57. X
  58. XHDRS= config.h err.h expr.h globals.h protos.h types.h version.h
  59. XSTDHDRS= config.h types.h protos.h globals.h err.h
  60. XSRCS= calendar.c dorem.c dosubst.c expr.c files.c funcs.c globals.c init.c \
  61. Xmain.c omit.c queue.c token.c trigger.c userfns.c utils.c var.c
  62. X
  63. XMANIFEST= README.UNIX README.DOS COPYRIGHT $(HDRS) $(SRCS) Makefile rem rem.1 \
  64. Xremind.1 remind-all.csh remind-all.sh test.rem test-rem test.cmp makefile.tc \
  65. Xmakefile.msc lnk.msc lnk.tc MANIFEST.UNX MANIFEST.DOS WHATSNEW.30 kall kall.1
  66. X
  67. XOBJS= $(SRCS:.c=.o)
  68. X
  69. Xremind: $(OBJS)
  70. X    $(CC) -o remind $(OBJS)
  71. X
  72. X.c.o:
  73. X    $(CC) $(UNIX) $(SYSV) -c -o $*.o $(CFLAGS) $(CDEFS) $*.c
  74. X
  75. Xclean:
  76. X    rm -f *.o *~
  77. X
  78. Xcalendar.o: calendar.c $(STDHDRS) expr.h
  79. Xdorem.o: dorem.c $(STDHDRS) expr.h
  80. Xdosubst.o: dosubst.c $(STDHDRS)
  81. Xexpr.o: expr.c $(STDHDRS) expr.h
  82. Xfiles.o: files.c $(STDHDRS)
  83. Xfuncs.o: funcs.c $(STDHDRS) expr.h version.h
  84. Xglobals.o: globals.c config.h types.h globals.h err.h
  85. Xinit.o: init.c $(STDHDRS) expr.h version.h
  86. Xmain.o: main.c $(STDHDRS) expr.h
  87. Xomit.o: omit.c $(STDHDRS)
  88. Xqueue.o: queue.c $(STDHDRS)
  89. Xtoken.o: token.c $(STDHDRS)
  90. Xtrigger.o: trigger.c $(STDHDRS) expr.h
  91. Xuserfns.o: userfns.c $(STDHDRS) expr.h
  92. Xutils.o: utils.c $(STDHDRS)
  93. Xvar.o: var.c $(STDHDRS) expr.h
  94. X
  95. XtarZ:
  96. X    tar cvf remind-3.0.0.tar $(MANIFEST)
  97. X    compress -v remind-3.0.0.tar
  98. X
  99. Xshar:
  100. X    shar -x -n"Remind $(VERSION)" -l45 -o./Shar $(MANIFEST)
  101. X
  102. Xtodos:
  103. X    mdel 'a:*.*'
  104. X    mdel 'a:*'
  105. X    mcopy -tn $(MANIFEST) a:
  106. X
  107. Xfromdos:
  108. X    mcopy -tn 'a:*' .
  109. X    -mv -f copyrigh COPYRIGHT
  110. X    -mv -f makefile Makefile
  111. X    -mv -f readme.dos README.DOS
  112. X    -mv -f readme.uni README.UNIX
  113. X    -mv -f remind-a.csh remind-all.csh
  114. X    -mv -f remind-a.sh remind-all.sh
  115. X    -mv -f manifest.dos MANIFEST.DOS
  116. X    -mv -f manifest.unx MANIFEST.UNX
  117. X    -mv -f whatsnew.30 WHATSNEW.30
  118. X    -chmod u+x test-rem
  119. X
  120. Xbackup:
  121. X    cp $(MANIFEST) ../backup
  122. X
  123. Xtransmit:
  124. X    sz -a -Z -e $(MANIFEST)
  125. SHAR_EOF
  126. $TOUCH -am 1109141292 Makefile &&
  127. chmod 0600 Makefile ||
  128. echo "restore of Makefile failed"
  129. set `wc -c Makefile`;Wc_c=$1
  130. if test "$Wc_c" != "2669"; then
  131.     echo original size 2669, current size $Wc_c
  132. fi
  133. fi
  134. # ============= rem ==============
  135. if test X"$1" != X"-c" -a -f 'rem'; then
  136.     echo "File already exists: skipping 'rem'"
  137. else
  138. echo "x - extracting rem (Text)"
  139. sed 's/^X//' << 'SHAR_EOF' > rem &&
  140. X#!/bin/sh
  141. X#
  142. X# rem - by David Skoll - 26 February 1991
  143. X#
  144. X# This script runs 'remind' with a default reminder file assumed.  You
  145. X# can override the default by using "rem -f newfile ..."  (But why would
  146. X# you use rem unless you wanted to accept the default??)
  147. X
  148. X# ------ You may wish to change the defaults below this line ------
  149. X
  150. X# The default reminder file
  151. XDEFAULT=$HOME/.reminders
  152. X
  153. X# The executable file (you may wish to change this to /usr/local/bin/remind
  154. X# or whatever.
  155. XEXECUTABLE=remind
  156. X
  157. X# No options yet
  158. XOPTIONS=""
  159. X
  160. X# No parameters yet
  161. XPARAMETERS=""
  162. X
  163. X# ------ You shouldn't change anything below this line -----
  164. X
  165. X# Scan for options
  166. Xwhile test "$1" != ""
  167. Xdo
  168. X    case $1 in
  169. X
  170. X        -F) DEFAULT=$2
  171. X            shift
  172. X            shift ;;
  173. X
  174. X        -*) OPTIONS="$OPTIONS $1"
  175. X            shift ;;
  176. X
  177. X        *) PARAMETERS=$*
  178. X           break ;;
  179. X    esac
  180. Xdone
  181. X
  182. X$EXECUTABLE $OPTIONS $DEFAULT $PARAMETERS
  183. SHAR_EOF
  184. $TOUCH -am 1109141292 rem &&
  185. chmod 0600 rem ||
  186. echo "restore of rem failed"
  187. set `wc -c rem`;Wc_c=$1
  188. if test "$Wc_c" != "850"; then
  189.     echo original size 850, current size $Wc_c
  190. fi
  191. fi
  192. # ============= rem.1 ==============
  193. if test X"$1" != X"-c" -a -f 'rem.1'; then
  194.     echo "File already exists: skipping 'rem.1'"
  195. else
  196. echo "x - extracting rem.1 (Text)"
  197. sed 's/^X//' << 'SHAR_EOF' > rem.1 &&
  198. X.TH REM 1 "26 February 1991"
  199. X.UC 4
  200. X.SH NAME
  201. Xrem \- run 'remind' with a default reminder file
  202. X.SH SYNOPSIS
  203. X.B rem
  204. X[\-F \fIfilename\fR] [\fIremind_options\fR] [\fIremind_params\fR]
  205. X.SH DESCRIPTION
  206. X.B Rem
  207. Xruns the \fBremind\fR program with a default reminder file of
  208. X"$HOME/.reminders".  You can supply remind options on the command line,
  209. Xas well as a date specification, just as with \fBremind\fR.
  210. X
  211. XIf you don't want to use the default filename, you can override it with
  212. Xthe "-F" option, followed by a space and a filename.  (This, however,
  213. Xdefeats the purpose of \fBrem\fR)
  214. X.PP
  215. XFor example, typing:
  216. X.PP
  217. X.nf
  218. X    rem -c 1 jan 1992
  219. X.fi
  220. X.PP
  221. Xhas the same effect as typing:
  222. X.PP
  223. X.nf
  224. X    remind -c $HOME/.reminders 1 jan 1992
  225. X.fi
  226. X.PP
  227. X.SH AUTHOR
  228. XDavid F. Skoll
  229. X.SH SEE ALSO
  230. Xremind, kall
  231. X
  232. SHAR_EOF
  233. $TOUCH -am 1109141292 rem.1 &&
  234. chmod 0600 rem.1 ||
  235. echo "restore of rem.1 failed"
  236. set `wc -c rem.1`;Wc_c=$1
  237. if test "$Wc_c" != "772"; then
  238.     echo original size 772, current size $Wc_c
  239. fi
  240. fi
  241. echo "End of part 10, continue with part 11"
  242. exit 0
  243.  
  244. exit 0 # Just in case...
  245.