From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Espen Newsgroups: gmane.emacs.help Subject: Re: remote file editing and local copy for web development (like dreamweaver) Date: Wed, 20 Aug 2014 09:53:38 -0400 Organization: A noiseless patient Spider Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1408542931 5978 80.91.229.3 (20 Aug 2014 13:55:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 Aug 2014 13:55:31 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 20 15:55:26 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XK6ME-0001o4-PY for geh-help-gnu-emacs@m.gmane.org; Wed, 20 Aug 2014 15:55:22 +0200 Original-Received: from localhost ([::1]:55879 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XK6ME-0005uP-Fh for geh-help-gnu-emacs@m.gmane.org; Wed, 20 Aug 2014 09:55:22 -0400 Original-Path: usenet.stanford.edu!news.kjsl.com!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 61 Injection-Info: mx05.eternal-september.org; posting-host="61a1e09a5dd16679b5767d77eb99504d"; logging-data="16805"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+piAsvpxcuPydOCS+nmkyQ0GYOLWn2XAw=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:HzrlAHo08o4RXcC5jTThHG95al8= Original-Xref: usenet.stanford.edu gnu.emacs.help:207040 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:99317 Archived-At: Infrid writes: > hi all, > I'm a web developers and my co-workers use dreamweaver for editing PHP > files in a live environment (I know is a bad practice) in this way: > > 1. From a menu they "open" the web site location, dreamweaver knows > where the files are on the net. > > 2. They navigate in the file system end select the file for edit > > 3. dreamweaver actually download the file and it puts in a directory > following the remote paths. Example: if you edit ~/dira/dirb/file.txt it > create the path under c:\myWeb\dira\dirb\file.txt > > 4. When they save, dreamweaver write the local file and uploads it to > the remote location. > In the end you have a partial copy of the web site on your hard drive. > > how can I get the same behavior in emacs? I've searched for a packages > for this without success. > > many thanks I use makefiles: DOWN_SITE:=http://site.xxx.net/uuuuuuu UP_SITE:=ftpmysite.xxx.net uploads:=\ index.html\ test.png targets:=$(addsuffix .uploaded,$(uploads)) all: $(targets) get: wget -r $(DOWN_SITE) define install_html (\ echo -e "binary\n"\ "put $(subst .uploaded,,$@)\n"\ "close\n"\ "quit\n"\ ) | ftp $(UP_SITE) endef define test_it echo "put $(subst .uploaded,,$@)" endef %.uploaded: % # $(test_it) $(install_html) echo "`date`" > $@ clean: rm *.uploaded -- Dan Espen