[Apt-zip-devel] r67 - in branches/nix-scripts: . debian methods

Eddy Petrisor eddyp-guest at costa.debian.org
Sun Jul 23 22:44:56 UTC 2006


Author: eddyp-guest
Date: 2006-07-23 22:44:56 +0000 (Sun, 23 Jul 2006)
New Revision: 67

Added:
   branches/nix-scripts/methods/all
   branches/nix-scripts/methods/write-fetch-lynx
Removed:
   branches/nix-scripts/methods/wget
Modified:
   branches/nix-scripts/Makefile
   branches/nix-scripts/debian/changelog
Log:
add support for lynx method - closes #261264

Modified: branches/nix-scripts/Makefile
===================================================================
--- branches/nix-scripts/Makefile	2006-07-23 22:19:51 UTC (rev 66)
+++ branches/nix-scripts/Makefile	2006-07-23 22:44:56 UTC (rev 67)
@@ -10,7 +10,8 @@
 SCRIPTS=	apt-zip-list
 SSCRIPTS=	apt-zip-inst
 SHARED=		common.sh methods/commonmeth.sh
-METHODS=	wget write-fetch-wget # lftp
+METHODS=	all write-fetch-wget write-fetch-lynx # lftp
+FAKEMETHS=	wget lynx # lftp
 CONFFILE=	apt-zip.conf
 MANPAGE=	apt-zip.8
 MANLINKS=	${SCRIPTS:=.8} ${SSCRIPTS:=.8}
@@ -33,6 +34,9 @@
 	for i in ${MANLINKS}; do \
 		ln -s ${MANPAGE} ${MAN8DIR}/$$i ;\
 	done
+	for i in ${FAKEMETHS}; do \
+		ln -s ${METHDIR}/all ${METHDIR}/$$i ;\
+	done
 
 clean:
 	rm -f manpage.* ${MANPAGE}

Modified: branches/nix-scripts/debian/changelog
===================================================================
--- branches/nix-scripts/debian/changelog	2006-07-23 22:19:51 UTC (rev 66)
+++ branches/nix-scripts/debian/changelog	2006-07-23 22:44:56 UTC (rev 67)
@@ -1,9 +1,11 @@
 apt-zip (0.16) UNRELEASED; urgency=low
 
   [ Eddy Petrișor ]
-  * more indenting improvement in common.sh.in file
-  * spimplified the way to add new methods if *NIX systems are used;
+  * More indenting improvement in common.sh.in file
+  * Spimplified the way to add new methods if *NIX systems are used;
      now is only a matter of definig a methods/write-fetch-$METHOD script
+  * Added support for lynx method, thanks to new recipe (Closes: #261264)
+  * All methods' scripts are now symlinks to methods/all
 
  -- Eddy Petrișor <eddy.petrisor at gmail.com>  Mon,  5 Jun 2006 22:44:21 +0300
 

Copied: branches/nix-scripts/methods/all (from rev 66, branches/nix-scripts/methods/wget)

Deleted: branches/nix-scripts/methods/wget
===================================================================
--- branches/nix-scripts/methods/wget	2006-07-23 22:19:51 UTC (rev 66)
+++ branches/nix-scripts/methods/wget	2006-07-23 22:44:56 UTC (rev 67)
@@ -1,6 +0,0 @@
-#!/bin/bash -e
-
-[ -r "${SHAREDIR}/common.sh" ] || SHAREDIR=/usr/share/apt-zip
-
-source ${SHAREDIR}/commonmeth.sh
-

Added: branches/nix-scripts/methods/write-fetch-lynx
===================================================================
--- branches/nix-scripts/methods/write-fetch-lynx	2006-07-23 22:19:51 UTC (rev 66)
+++ branches/nix-scripts/methods/write-fetch-lynx	2006-07-23 22:44:56 UTC (rev 67)
@@ -0,0 +1,9 @@
+
+cat <<-EOF
+
+#$2 contains the local file and $1 contains the URL
+fetch () {
+	    lynx -dump \$1 > \$2
+}
+
+EOF




More information about the apt-zip-devel mailing list