Function: ede-upload-distribution
ede-upload-distribution is an autoloaded, interactive and
byte-compiled function defined in system.el.gz.
Signature
(ede-upload-distribution)
Documentation
Upload the current distribution to the correct location.
Use /user@ftp.site.com: file names for FTP sites. Download tramp, and use /r:machine: for names on remote sites w/out FTP access.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/ede/system.el.gz
;;;###autoload
(defun ede-upload-distribution ()
"Upload the current distribution to the correct location.
Use /user@ftp.site.com: file names for FTP sites.
Download tramp, and use /r:machine: for names on remote sites w/out FTP access."
(interactive)
(let* ((files (project-dist-files (ede-toplevel)))
(upload (if (string= (oref (ede-toplevel) ftp-upload-site) "")
(oref (ede-toplevel) ftp-site)
(oref (ede-toplevel) ftp-upload-site))))
(when (or (string= upload "")
(not (file-exists-p upload)))
(error "Upload directory %S does not exist" upload))
(while files
(let ((localfile (concat (file-name-directory (oref (ede-toplevel) file))
(car files))))
(if (not (file-exists-p localfile))
(progn
(message "File %s does not exist yet. Building a distribution"
localfile)
(ede-make-dist)
(error "File %s does not exist yet. Building a distribution"
localfile)
))
(setq upload
(concat (directory-file-name upload)
"/"
(file-name-nondirectory localfile)))
(copy-file localfile upload)
(setq files (cdr files)))))
(message "Done uploading files...")
)