home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1994 March / Source_Code_CD-ROM_Walnut_Creek_March_1994.iso / compsrcs / misc / volume33 / remind / part10 < prev    next >
Encoding:
Text File  |  1992-11-10  |  6.2 KB  |  239 lines

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