OBS-URL: https://build.opensuse.org/package/show/Printing/filters?expand=0&rev=1
49 lines
1.1 KiB
Plaintext
49 lines
1.1 KiB
Plaintext
--- Makefile
|
|
+++ Makefile Fri Dec 15 15:56:26 2000
|
|
@@ -6,7 +6,7 @@
|
|
|
|
# compiler, compiler and linker options
|
|
CC = gcc
|
|
-OPT = -O2 -Wall
|
|
+OPT = $(RPM_OPT_FLAGS) -Wall
|
|
LINKOPT = -s
|
|
|
|
# you should not need to change anything below
|
|
@@ -27,6 +27,10 @@
|
|
|
|
clean:
|
|
rm -f *.o $(EXECNAME)
|
|
+
|
|
+install: cjet
|
|
+ mkdir -p $(DESTDIR)/usr/bin
|
|
+ install -m 0755 cjet $(DESTDIR)/usr/bin/
|
|
|
|
|
|
$(OBJ): pcl.h cjet.h capsl.h
|
|
--- main.c
|
|
+++ main.c Fri Dec 15 15:56:50 2000
|
|
@@ -23,6 +23,7 @@
|
|
*/
|
|
|
|
|
|
+#include <string.h>
|
|
#define MAIN
|
|
#include "cjet.h"
|
|
|
|
--- page.c
|
|
+++ page.c Fri Dec 15 15:57:19 2000
|
|
@@ -132,11 +132,12 @@
|
|
PutString("\033[1;%d;0x", MARGININDEX); /* save CAP */
|
|
PutString("\033[0;1;0x"); /* move to physical 0,0 */
|
|
SetModes(SIZEUNIT,DECIPTS);
|
|
- if( y!= 0 )
|
|
+ if( y != 0 ) {
|
|
if (y > 0)
|
|
PutString("\033[%de", y); /* move down */
|
|
else
|
|
PutString("\033[%dk", -y); /* move up */
|
|
+ }
|
|
PutString("\033[1;%d;2x", S_TOPMARGIN); /* save init top margin */
|
|
PutString("\033[0;%d;0x", MARGININDEX); /* restore CAP */
|
|
}
|