aboutsummaryrefslogtreecommitdiff
path: root/scm
diff options
context:
space:
mode:
Diffstat (limited to 'scm')
-rw-r--r--scm/Makefile.am24
-rw-r--r--scm/dictrans.scm3
-rw-r--r--scm/neatrans.scm5
3 files changed, 17 insertions, 15 deletions
diff --git a/scm/Makefile.am b/scm/Makefile.am
index 481676f..73b3e84 100644
--- a/scm/Makefile.am
+++ b/scm/Makefile.am
@@ -1,5 +1,5 @@
# This file is part of Ellinika project.
-# Copyright (C) 2004, 2005, 2007 Sergey Poznyakoff
+# Copyright (C) 2004, 2005, 2007, 2015 Sergey Poznyakoff
#
# Ellinika is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -20,20 +20,20 @@ CLEANFILES=dictrans.sed dictrans neatrans verbop
EXTRA_DIST=dictrans.scm
dictrans.sed: Makefile
- echo 's,=GUILE_BINDIR=,$(GUILE_BINDIR),' > $@
- echo 's,=GUILE_SITE=,@GUILE_SITE@,' >> $@
- echo 's,\;=GUILE_COMMENT=\;,@GUILE_COMMENT@,' >> $@
- echo 's,=SYSCONFDIR=,$(sysconfdir),' >> $@
- echo 's,=AUTOGENERATED=,@AUTOGENERATED@,' >> $@
+ $(AM_V_GEN){ \
+ echo 's,=GUILE_BINDIR=,$(GUILE_BINDIR),'; \
+ echo 's,=GUILE_SITE=,@GUILE_SITE@,'; \
+ echo 's,\;=GUILE_COMMENT=\;,@GUILE_COMMENT@,'; \
+ echo 's,=SYSCONFDIR=,$(sysconfdir),'; \
+ echo 's,=AUTOGENERATED=,@AUTOGENERATED@,'; \
+ } > dictrans.sed
+
+%: %.scm
+ $(AM_V_GEN)sed -f dictrans.sed $< > $@
+ @chmod +x $@
dictrans: $(srcdir)/dictrans.scm dictrans.sed
- sed -f dictrans.sed $(srcdir)/dictrans.scm > $@
- chmod +x $@
neatrans: $(srcdir)/neatrans.scm dictrans.sed
- sed -f dictrans.sed $(srcdir)/neatrans.scm > $@
- chmod +x $@
verbop: $(srcdir)/verbop.scm dictrans.sed
- sed -f dictrans.sed $(srcdir)/verbop.scm > $@
- chmod +x $@
diff --git a/scm/dictrans.scm b/scm/dictrans.scm
index d76479e..2148929 100644
--- a/scm/dictrans.scm
+++ b/scm/dictrans.scm
@@ -90,7 +90,8 @@
(ellinika xlat)
(ice-9 getopt-long))
-(use-syntax (ice-9 syncase))
+(if (= (string->number (major-version)) 1)
+ (use-modules (ice-9 syncase)))
(define compile-only #f)
(define cleanup-option #f)
diff --git a/scm/neatrans.scm b/scm/neatrans.scm
index e92e585..333453f 100644
--- a/scm/neatrans.scm
+++ b/scm/neatrans.scm
@@ -2,7 +2,7 @@
=AUTOGENERATED=
!#
;;;; This file is part of Ellinika
-;;;; Copyright (C) 2006, 2007, 2010 Sergey Poznyakoff
+;;;; Copyright (C) 2006, 2007, 2010, 2015 Sergey Poznyakoff
;;;;
;;;; Ellinika is free software; you can redistribute it and/or modify
;;;; it under the terms of the GNU General Public License as published by
@@ -37,7 +37,8 @@
(ellinika xlat)
(ice-9 getopt-long))
-(use-syntax (ice-9 syncase))
+(if (= (string->number (major-version)) 1)
+ (use-modules (ice-9 syncase)))
(define compile-only #f)
(define cleanup-option #f)

Return to:

Send suggestions and report system problems to the System administrator.