From e6dce5b44ba88b1ba740791f212cbdec77dd1505 Mon Sep 17 00:00:00 2001 From: "Kevin M. Rosenberg" Date: Wed, 14 Jan 2004 03:43:42 +0000 Subject: [PATCH 1/1] r8511: initial import --- LICENSE | 21 +++++++++++++ README | 10 ++++++ debian/changelog | 5 +++ debian/compat | 1 + debian/control | 17 +++++++++++ debian/copyright | 30 ++++++++++++++++++ debian/postinst | 47 ++++++++++++++++++++++++++++ debian/prerm | 38 +++++++++++++++++++++++ debian/rules | 79 ++++++++++++++++++++++++++++++++++++++++++++++++ debian/upload.sh | 4 +++ package.lisp | 15 +++++++++ rlc.asd | 15 +++++++++ 12 files changed, 282 insertions(+) create mode 100644 LICENSE create mode 100644 README create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/postinst create mode 100644 debian/prerm create mode 100755 debian/rules create mode 100755 debian/upload.sh create mode 100644 package.lisp create mode 100644 rlc.asd diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..d1ed13b --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +Copyright (c) 2004 Kevin Rosenberg + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: + +1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED "AS IS" AND THERE ARE NEITHER EXPRESSED NOR +IMPLIED WARRANTIES - THIS INCLUDES, BUT IS NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.IN +NO WAY ARE THE AUTHORS LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES ; LOSS OF USE, +DATA, OR PROFITS ; OR BUSINESS INTERRUPTION) + diff --git a/README b/README new file mode 100644 index 0000000..38fe39a --- /dev/null +++ b/README @@ -0,0 +1,10 @@ +This library provides simulation for RLC (resistance, inductance, +capacitance) circuits. Cases are provides for null (0 value) +resistors, inductors, and capacitors. + +Rather than using iterative differential equation simulators, this +programs uses analytic solutions derived using Laplace +transformations. + + + diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..fa1c80b --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +cl-rlc (0.1-1) unstable; urgency=low + + * Initial version + + -- Kevin M. Rosenberg Tue, 13 Jan 2004 20:18:21 -0700 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..b8626c4 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +4 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..3558a1d --- /dev/null +++ b/debian/control @@ -0,0 +1,17 @@ +Source: cl-rlc +Section: devel +Priority: optional +Maintainer: Kevin M. Rosenberg +Build-Depends-Indep: debhelper (>> 4.0.0) +Standards-Version: 3.6.1.0 + +Package: cl-rlc +Architecture: all +Depends: ${shlibs:Depends}, common-lisp-controller (>= 3.37), cl-kmrcl, xgraph +Description: Common Lisp RLC Circuit Simulator + cl-rlc provides a simulator for RLC (resistance, inductance, capacitance) + cicuits. It is written in Common Lisp and uses the xgraph package for + plotting. + + + diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..8be682f --- /dev/null +++ b/debian/copyright @@ -0,0 +1,30 @@ +Debian Copyright Section +======================== + +Upstream Source URL: http://files.b9.com/rlc/ +Upstream Authors: Kevin Rosenberg +Debian Maintainer: Kevin M. Rosenberg + +Upstream Copyright Statement +============================ +Copyright (c) 2004 Kevin Rosenberg + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: + +1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED "AS IS" AND THERE ARE NEITHER EXPRESSED NOR +IMPLIED WARRANTIES - THIS INCLUDES, BUT IS NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.IN +NO WAY ARE THE AUTHORS LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES ; LOSS OF USE, +DATA, OR PROFITS ; OR BUSINESS INTERRUPTION) + diff --git a/debian/postinst b/debian/postinst new file mode 100644 index 0000000..a72bfd2 --- /dev/null +++ b/debian/postinst @@ -0,0 +1,47 @@ +#! /bin/sh +set -e + +LISP_PKG=rlc + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package +# +# quoting from the policy: +# Any necessary prompting should almost always be confined to the +# post-installation script, and should be protected with a conditional +# so that unnecessary prompting doesn't happen if a package's +# installation fails and the `postinst' is called with `abort-upgrade', +# `abort-remove' or `abort-deconfigure'. + +case "$1" in + configure) + /usr/sbin/register-common-lisp-source ${LISP_PKG} + + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + diff --git a/debian/prerm b/debian/prerm new file mode 100644 index 0000000..635c24f --- /dev/null +++ b/debian/prerm @@ -0,0 +1,38 @@ +#! /bin/sh +set -e + +# package name according to lisp +LISP_PKG=rlc + +# summary of how this script can be called: +# * `remove' +# * `upgrade' +# * `failed-upgrade' +# * `remove' `in-favour' +# * `deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + remove|upgrade|deconfigure) + /usr/sbin/unregister-common-lisp-source ${LISP_PKG} + ;; + failed-upgrade) + ;; + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..f2c737c --- /dev/null +++ b/debian/rules @@ -0,0 +1,79 @@ +#!/usr/bin/make -f + +pkg := rlc +debpkg := cl-rlc + + +clc-source := usr/share/common-lisp/source +clc-systems := usr/share/common-lisp/systems +clc-irc := $(clc-source)/$(pkg) + +doc-dir := usr/share/doc/$(debpkg) + + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + touch configure-stamp + + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + # Add here commands to compile the package. + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + # Add here commands to clean up after the build process. + rm -f debian/cl-rlc.postinst.* debian/cl-rlc.prerm.* + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + # Add here commands to install the package into debian/rlc. + dh_installdirs $(clc-systems) $(clc-irc) $(doc-dir) + dh_install rlc.asd $(shell echo *.lisp) $(clc-irc) + dh_link $(clc-irc)/rlc.asd $(clc-systems)/rlc.asd + +# Build architecture-independent files here. +binary-indep: build install + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot +# dh_installdebconf + dh_installdocs README + dh_installexamples +# dh_installmenu +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installman +# dh_installinfo +# dh_undocumented + dh_installchangelogs + dh_strip + dh_compress + dh_fixperms +# dh_makeshlibs + dh_installdeb +# dh_perl + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure + diff --git a/debian/upload.sh b/debian/upload.sh new file mode 100755 index 0000000..470cfd2 --- /dev/null +++ b/debian/upload.sh @@ -0,0 +1,4 @@ +#!/bin/sh +set -e + +dup rlc -Uftp.med-info.com -D/home/ftp/rlc -C"/home/kevin/bin/remove-old-versions rlc latest" -su $* diff --git a/package.lisp b/package.lisp new file mode 100644 index 0000000..039f46c --- /dev/null +++ b/package.lisp @@ -0,0 +1,15 @@ +;;;; -*- Mode: Lisp -*- +;;;; Package definition for rlc +;;;; $Id: $ + +(in-package #:cl-user) +(defpackage #:rlc + (:use #:cl) + (:export + #:plot-series-rlc-current + #:series-rlc-current-formula + #:series-rlc-current-time + )) + + + diff --git a/rlc.asd b/rlc.asd new file mode 100644 index 0000000..c128b20 --- /dev/null +++ b/rlc.asd @@ -0,0 +1,15 @@ +;;;; -*- Mode: Lisp -*- +;;;; ASDF definition for rlc +;;;; $Id: rlc.asd,v 1.1 2003/12/14 16:10:29 krosenberg Exp $ + +(in-package #:cl-user) +(defpackage #:rlc-system (:use #:cl #:asdf)) +(in-package #:rlc-system) + +(defsystem rlc + :depends-on (kmrcl) + :components ((:file "package") + (:file "main" :depends-on ("package")))) + + + -- 2.34.1