[Apt-zip-devel] r70 - in branches/nix-scripts: . methods
Eddy Petrisor
eddyp-guest at costa.debian.org
Sun Jul 23 23:59:30 UTC 2006
Author: eddyp-guest
Date: 2006-07-23 23:59:24 +0000 (Sun, 23 Jul 2006)
New Revision: 70
Added:
branches/nix-scripts/methods/write-fetch-curl
Modified:
branches/nix-scripts/Makefile
Log:
Add support for curl method
Modified: branches/nix-scripts/Makefile
===================================================================
--- branches/nix-scripts/Makefile 2006-07-23 23:07:59 UTC (rev 69)
+++ branches/nix-scripts/Makefile 2006-07-23 23:59:24 UTC (rev 70)
@@ -10,8 +10,8 @@
SCRIPTS= apt-zip-list
SSCRIPTS= apt-zip-inst
SHARED= common.sh methods/commonmeth.sh
-METHODS= all write-fetch-wget write-fetch-lynx # lftp
-FAKEMETHS= wget lynx # lftp
+METHODS= all write-fetch-wget write-fetch-curl write-fetch-lynx # lftp
+FAKEMETHS= wget lynx curl # lftp
CONFFILE= apt-zip.conf
MANPAGE= apt-zip.8
MANLINKS= ${SCRIPTS:=.8} ${SSCRIPTS:=.8}
Added: branches/nix-scripts/methods/write-fetch-curl
===================================================================
--- branches/nix-scripts/methods/write-fetch-curl 2006-07-23 23:07:59 UTC (rev 69)
+++ branches/nix-scripts/methods/write-fetch-curl 2006-07-23 23:59:24 UTC (rev 70)
@@ -0,0 +1,9 @@
+
+cat <<-EOF
+
+#\$2 contains the local file and \$1 contains the URL
+fetch () {
+ curl -o \$2 \$1
+}
+
+EOF
More information about the apt-zip-devel
mailing list