scp custom and default targets
"Scott Henry Harrison" <harris41-mhe/[email protected]> Thu, 22 Jan 2004 09:08:23 -0500
| Newsgroups | gmane.comp.tools.aap.devel |
|---|---|
| Message-ID | <[email protected]> |
I am having difficulty getting scp to work with custom target variables. scp works fine with default target variables. For example, this works. aap PREFIX=scp://[email protected]// install-local --specifications.aap-- CUSTOMDIR = /tmp INSTALL_CUSTOM += \ test1.txt test2.txt CUSTOMPERMISSIONS = 0644 --end specifications.aap-- --main.aap-- PKGNAME = SCP-Tester-GX50-Turbo :include specifications.aap install-local : @install_files(_no.CONFDIR, @ _no.INSTALL_CUSTOM,_no.CUSTOMPERMISSIONS) --end main_works.aap-- The following sends to /tmp PKGNAME = SCP-Tester-GX50-Turbo :include specifications.aap install-local : @install_files(_no.CUSTOMDIR, @ _no.INSTALL_CUSTOM,_no.CUSTOMPERMISSIONS) Aap: Copied "test1.txt" to "/tmp/test1.txt" Aap: Copied "test2.txt" to "/tmp/test2.txt" So, when I try to alter, inside specifications.aap CUSTOMDIR=$PREFIX/tmp I get it installed on the remote computer into a directory called "/root/scp:/[email protected]/tmp/" Aap: Copied "test1.txt" to "/home/sharrison/tmp/tmp4cRcYK" Aap: /usr/bin/scp -C -p '/home/sharrison/tmp/tmp4cRcYK' '[email protected]:/scp://root@mycomputeretc///tmp/test1.txt' scp: /scp://[email protected]///tmp/test1.txt: No such file or directory Aap: looks like the directory does not exist, creating it Aap: ssh [email protected] mkdir -p /scp://root@mycomputeretc///tmp Aap: /usr/bin/scp -C -p '/home/sharrison/tmp/tmp4cRcYK' '[email protected]:/scp://root@mycomputeretc///tmp/test1.txt' Aap: Moved "../tmp/tmp4cRcYK" to "scp://[email protected]//scp://root@mycomputeretc///tmp/test1.txt" Aap: Copied "test2.txt" to "/home/sharrison/tmp/tmpAuBZ85" Aap: /usr/bin/scp -C -p '/home/sharrison/tmp/tmpAuBZ85' '[email protected]:/scp://root@mycomputeretc///tmp/test2.txt' Aap: Moved "../tmp/tmpAuBZ85" to "scp://[email protected]//scp://root@mycomputeretc///tmp/test2.txt" I really need to specify custom directory locations inside a file (e.g. specifications.aap) and I would like to specify PREFIX from the command-line. I saw a patch related to DESTDIR and @install_files, but not sure if this is related. Thanks for your help. Regards, Scott ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn