help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: remote file editing and local copy for web development (like dreamwe


From: Dan Espen
Subject: Re: remote file editing and local copy for web development (like dreamweaver)
Date: Wed, 20 Aug 2014 09:53:38 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Infrid <debate@infrid.com> 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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]