From a81ffd184125414a680759bb859a1e57f634d88a Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Thu, 16 Dec 1999 14:31:35 +0000 Subject: Initial revision --- Src/Aliases/.cvsignore | 16 +++++++++++++ Src/Aliases/.distfiles | 8 +++++++ Src/Aliases/.exrc | 2 ++ Src/Aliases/.preconfig | 32 ++++++++++++++++++++++++++ Src/Aliases/alias.c.in | 59 ++++++++++++++++++++++++++++++++++++++++++++++++ Src/Aliases/alias.mdd.in | 20 ++++++++++++++++ 6 files changed, 137 insertions(+) create mode 100644 Src/Aliases/.cvsignore create mode 100644 Src/Aliases/.distfiles create mode 100644 Src/Aliases/.exrc create mode 100755 Src/Aliases/.preconfig create mode 100644 Src/Aliases/alias.c.in create mode 100644 Src/Aliases/alias.mdd.in 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 -- cgit 1.4.1