about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--Src/Aliases/.cvsignore16
-rw-r--r--Src/Aliases/.distfiles8
-rw-r--r--Src/Aliases/.exrc2
-rwxr-xr-xSrc/Aliases/.preconfig32
-rw-r--r--Src/Aliases/alias.c.in59
-rw-r--r--Src/Aliases/alias.mdd.in20
6 files changed, 137 insertions, 0 deletions
diff --git a/Src/Aliases/.cvsignore b/Src/Aliases/.cvsignore
new file mode 100644
index 000000000..b43abd6af
--- /dev/null
+++ b/Src/Aliases/.cvsignore
@@ -0,0 +1,16 @@
+Makefile
+Makefile.in
+*.export
+so_locations
+*.pro
+*.epro
+*.syms
+*.o
+*.o.c
+*.so
+*.mdh
+*.mdhi
+*.mdhs
+*.mdh.tmp
+*.c
+*.mdd
diff --git a/Src/Aliases/.distfiles b/Src/Aliases/.distfiles
new file mode 100644
index 000000000..647404f33
--- /dev/null
+++ b/Src/Aliases/.distfiles
@@ -0,0 +1,8 @@
+DISTFILES_SRC='
+    .cvsignore .distfiles .exrc .preconfig
+    alias.mdd.in alias.c.in
+    cap.mdd clone.mdd compctl.mdd complete.mdd complist.mdd
+    computil.mdd deltochar.mdd example.mdd files.mdd mapfile.mdd
+    mathfunc.mdd parameter.mdd rlimits.mdd sched.mdd stat.mdd
+    zftp.mdd zle.mdd zleparameter.mdd zutil.mdd
+'
diff --git a/Src/Aliases/.exrc b/Src/Aliases/.exrc
new file mode 100644
index 000000000..91d0b39ef
--- /dev/null
+++ b/Src/Aliases/.exrc
@@ -0,0 +1,2 @@
+set ai
+set sw=4
diff --git a/Src/Aliases/.preconfig b/Src/Aliases/.preconfig
new file mode 100755
index 000000000..064bc4e4e
--- /dev/null
+++ b/Src/Aliases/.preconfig
@@ -0,0 +1,32 @@
+#! /bin/sh
+
+for zshmod in \
+    cap \
+    clone \
+    compctl \
+    complete \
+    complist \
+    computil \
+    deltochar \
+    example \
+    files \
+    mapfile \
+    mathfunc \
+    parameter \
+    rlimits \
+    sched \
+    stat \
+    zftp \
+    zle \
+    zleparameter \
+    zutil \
+; do
+    localname=$zshmod
+    aliasname=$zshmod
+    depname=zsh/$zshmod
+    sed '
+	s,@LOCALNAME@,'$localname',g
+	s,@ALIASNAME@,'$aliasname',g
+	s,@DEPNAME@,'$depname',g
+    ' < alias.mdd.in > ${localname}.mdd
+done
diff --git a/Src/Aliases/alias.c.in b/Src/Aliases/alias.c.in
new file mode 100644
index 000000000..ecb5cd275
--- /dev/null
+++ b/Src/Aliases/alias.c.in
@@ -0,0 +1,59 @@
+/*
+ * alias.c.in - blank module for zsh
+ *
+ * This file is part of zsh, the Z shell.
+ *
+ * Copyright (c) 1996-1997 Andrew Main
+ * All rights reserved.
+ *
+ * Permission is hereby granted, without written agreement and without
+ * license or royalty fees, to use, copy, modify, and distribute this
+ * software and to distribute modified versions of this software for any
+ * purpose, provided that the above copyright notice and the following
+ * two paragraphs appear in all copies of this software.
+ *
+ * In no event shall Andrew Main or the Zsh Development Group be liable
+ * to any party for direct, indirect, special, incidental, or consequential
+ * damages arising out of the use of this software and its documentation,
+ * even if Andrew Main and the Zsh Development Group have been advised of
+ * the possibility of such damage.
+ *
+ * Andrew Main and the Zsh Development Group specifically disclaim any
+ * warranties, including, but not limited to, the implied warranties of
+ * merchantability and fitness for a particular purpose.  The software
+ * provided hereunder is on an "as is" basis, and Andrew Main and the
+ * Zsh Development Group have no obligation to provide maintenance,
+ * support, updates, enhancements, or modifications.
+ *
+ */
+
+#include "@NAME@.mdh"
+#include "@NAME@.pro"
+
+/**/
+int
+setup_(Module m)
+{
+    return 0;
+}
+
+/**/
+int
+boot_(Module m)
+{
+    return 0;
+}
+
+/**/
+int
+cleanup_(Module m)
+{
+    return 0;
+}
+
+/**/
+int
+finish_(Module m)
+{
+    return 0;
+}
diff --git a/Src/Aliases/alias.mdd.in b/Src/Aliases/alias.mdd.in
new file mode 100644
index 000000000..5fb10b4e2
--- /dev/null
+++ b/Src/Aliases/alias.mdd.in
@@ -0,0 +1,20 @@
+name=@ALIASNAME@
+
+nozshdep=1
+
+moddeps="@DEPNAME@"
+
+objects="@LOCALNAME@.o"
+
+:<<\Make
+@LOCALNAME@.mdd: alias.mdd.in
+	rm -f $@
+	cd $(sdir) && ./.preconfig
+
+@LOCALNAME@.c: alias.c.in
+	sed 's,@NAME@,@LOCALNAME@,g' < $(sdir)/alias.c.in > $@
+
+clean-here: clean.@LOCALNAME@
+clean.@LOCALNAME@:
+	rm -f @LOCALNAME@.c
+Make