From 52c175a4fea9f4d8437acd34b4bb1b5c78c5d669 Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Mon, 19 May 2014 08:40:22 +0900 Subject: [PATCH] port libemb.py to perl --- etc/libemb.pl | 63 +++++++++++++++++++++++++++++++++++++++ etc/libemb.py | 74 ---------------------------------------------- src/CMakeLists.txt | 5 ++-- 3 files changed, 65 insertions(+), 77 deletions(-) create mode 100755 etc/libemb.pl delete mode 100644 etc/libemb.py diff --git a/etc/libemb.pl b/etc/libemb.pl new file mode 100755 index 00000000..d6340b58 --- /dev/null +++ b/etc/libemb.pl @@ -0,0 +1,63 @@ +#!/usr/bin/perl + +@files = ( + 'piclib/built-in.scm', + 'piclib/srfi/1.scm', + 'piclib/srfi/26.scm', + 'piclib/srfi/95.scm' + ); + +print <) { + chomp; + s/\\/\\\\/g; + s/"/\\"/g; + print "\"$_\"\n"; + } + print ";\n\n"; +} +close IN; + +print < ${PROJECT_SOURCE_DIR}/src/load_piclib.c WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} )