~bouncepaw/agidel

f108e3ad8819e0da1aab1ae4a3b6cda1505d20e9 — Timur Ismagilov 5 years ago a9cd54f
Rename the file. Finish it. Agidel is finished?
2 files changed, 12 insertions(+), 14 deletions(-)

A agidel
D agidel-wrapper.c
A agidel => agidel +12 -0
@@ 0,0 1,12 @@
#!/bin/sh
filename=$1
shift
csi_args="-batch -quiet "
for plugin in "$@"
do
    csi_args+="-require-extension agidel-plugin.$plugin "
done

tmp="(begin $(cat $filename))"
csi $csi_args -e "(begin $(cat $filename))"
echo

D agidel-wrapper.c => agidel-wrapper.c +0 -14
@@ 1,14 0,0 @@
#include <stdio.h>
#include <unistd.h>

int main(int argc, char **argv) {
  printf("(import");
  for (int i = 1; i < argc; i++)
    printf("\n (agidel-plugin %s)", argv[i]);
  printf(")\n(display\n");
  char ch;
  while(read(STDIN_FILENO, &ch, 1) > 0) {
    printf("%c", ch);
  }
  printf(")");
}