+cl-getopt (1.2.0-1) unstable; urgency=low
+
+ * New upstream
+
+ -- Kevin M. Rosenberg <kmr@debian.org> Fri, 14 Mar 2008 09:00:57 -0600
+
cl-getopt (1.1.0-3) unstable; urgency=low
* debian/control: use build-depends, update standards-version
Priority: optional
Maintainer: Kevin M. Rosenberg <kmr@debian.org>
Build-Depends: debhelper (>= 4.0.0)
-Standards-Version: 3.7.2.2
+Standards-Version: 3.7.3.0
Package: cl-getopt
Architecture: all
configure: configure-stamp
configure-stamp:
dh_testdir
- # Add here commands to configure the package.
-
touch configure-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.
+ # Clean up after the build process.
rm -f debian/$(debpkg).postinst.* debian/$(debpkg).prerm.*
dh_clean
dh_testdir
dh_testroot
dh_clean -k
- # Add here commands to install the package into debian/getopt.
+ # Install the package into debian/getopt.
dh_installdirs $(clc-systems) $(clc-files) $(clc-tests)
dh_install $(pkg).asd $(source-files) $(clc-files)
dh_link $(clc-files)/$(pkg).asd $(clc-systems)/$(pkg).asd
-# Build architecture-independent files here.
+# Build architecture-independent files
binary-indep: build install
-
-
-# Build architecture-dependent files here.
-binary-arch: build install
dh_testdir
dh_testroot
-# dh_installdebconf
dh_installdocs
-# 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
+# Build architecture-dependent files
+binary-arch: build install
+
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure
(and (> (length arg) 2)
(char= #\- (schar arg 0))
(char= #\- (schar arg 1))
- (char/= #\- (schar arg 3))))
+ (char/= #\- (schar arg 2))))
(defun decompose-arg (arg option-type)
"Returns base-name,argument"
((null argument)
(if (and (eq :required (second option-list)) (null (cdr pos)))
(push base-name errors)
- (if (or (is-short-option (second pos))
+ (if (or (eq :none (second option-list))
+ (is-short-option (second pos))
(is-long-option (second pos)))
(if (eq :required (second option-list))
(push base-name errors)
- (push (cons base-name (third option-list)) out-args))
+ (push (cons base-name (third option-list)) out-opts))
(progn
(push (cons base-name (second pos)) out-opts)
(setq pos (cdr pos))))))))
(getopt '("--a=10") '(("along" :optional) ("aboot" :optional))))
(test-mv '(("a") nil nil)
(getopt '("a") '(("a" :none))))
+ (test-mv '(("a") (("foo") ("bar")) nil)
+ (getopt '("a" "--foo" "--bar") '(("foo" :none) ("bar" :none))))
+ (test-mv '(("a") (("foo") ("bar")) nil)
+ (getopt '("a" "--f" "--bar") '(("foo" :none) ("bar" :none))))
))
t)