[Webfunds-commits] html Make_common

Ian Grigg iang@cypherpunks.ai
Sun, 15 Apr 2001 19:00:33 -0400 (AST)


iang        01/04/15 19:00:33

  Modified:    .        Make_common
  Log:
  fix for png

Revision  Changes    Path
1.9       +30 -4     html/Make_common

Index: Make_common
===================================================================
RCS file: /home/webfunds/cvsroot/html/Make_common,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- Make_common	2000/05/28 23:48:43	1.8
+++ Make_common	2001/04/15 23:00:32	1.9
@@ -1,4 +1,4 @@
-# $Id: Make_common,v 1.8 2000/05/28 23:48:43 gelderen Exp $
+# $Id: Make_common,v 1.9 2001/04/15 23:00:32 iang Exp $
 
 #
 #  WEB is the local or internal server.  Set to webfunds.org/local/
@@ -19,18 +19,44 @@
 REM_ID?=-i ${CVS_KEY}
 
 .SUFFIXES:
-.SUFFIXES: .html .touch .a .ln .ps .index .gif .jpeg .jpg .sh .zip .asc .loc .aa .sit
+.SUFFIXES: .html .touch .a .ln .ps .index .gif .jpeg .jpg .sh .zip .asc .loc .aa .sit .png .css .o .s
 
+# these should be in PATH
+MK_INDEX=index.pl
+MK_PAGE=page.pl
+
+
 .html.ln:
+	$(MK_PAGE) ${.IMPSRC} > ${.TARGET}
+	${SCP} ${.TARGET} ${WEB_MC}:${LOCAL_TARGET_DIR}/${.IMPSRC}
+#	${SCP} ${.IMPSRC} ${WEB_MC}:${LOCAL_TARGET_DIR}/${.IMPSRC}
+#	touch ${.TARGET}
+
+.ln.a:
+	sed \
+	    -e '/^<drop>/,/^<\/drop>/d' \
+	    -e 's/^<u>/<!-- underline -->/' \
+	    -e 's/^<\/u>/<!-- end -->/' \
+	    -e 's,<date>.*</date>,'"$$(date)", \
+	  ${.IMPSRC} > ${.TARGET}
+	${SCP} ${REM_ID} ${.TARGET} ${REMOTE_MC}:${REMOTE_TARGET_DIR}/${.PREFIX}.html
+#	${SCP} ${.IMPSRC} ${WEB_MC}:${LOCAL_TARGET_DIR}/${.IMPSRC}
+#	touch ${.TARGET}
+
+.css.s:
 	${SCP} ${.IMPSRC} ${WEB_MC}:${LOCAL_TARGET_DIR}/${.IMPSRC}
 	touch ${.TARGET}
 
-.html.a:
+.css.o:
 	${SCP} ${REM_ID} ${.IMPSRC} ${REMOTE_MC}:${REMOTE_TARGET_DIR}/${.IMPSRC}
 	touch ${.TARGET}
 
-.sh.ln:
+.png.s:
 	${SCP} ${.IMPSRC} ${WEB_MC}:${LOCAL_TARGET_DIR}/${.IMPSRC}
+	touch ${.TARGET}
+
+.png.o:
+	${SCP} ${REM_ID} ${.IMPSRC} ${REMOTE_MC}:${REMOTE_TARGET_DIR}/${.IMPSRC}
 	touch ${.TARGET}
 
 .sh.a: