Changeset 31259 in project


Ignore:
Timestamp:
08/22/14 01:30:24 (5 years ago)
Author:
mikele
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/install

    r31258 r31259  
    2929Determine whether two paths represents the same file.
    3030
     31=== Examples
     32
     33<enscript highlight="scheme">
     34(use install)
     35
     36(install -?)
     37(install -d "/tmp/tests")
     38(install -d "C:\\tmp\\tests")
     39(install -d "C:/tmp/tests")
     40(install -d "/tmp/tests/a" "/tmp/tests/b")
     41(install -d -m 644 "/tmp/tests")
     42
     43(install -m 644 "file1" "/tmp/tests")
     44(install -m 644 "file1" "file2")
     45(install -m 644 "file1" "file2" "/tmp/tests")
     46(install -o "mikele" -m 644 "file1" "/tmp/tests")
     47(install -m 644 -p "file1" "/tmp/tests")
     48(install "/dev/null" "/usr/bin/empty")
     49(install "nul" "C:/bin/empty")
     50
     51(install-file "file1" "/tmp/tests")
     52(install-file '("file1") "/tmp/tests")
     53(install-file '("file1" "file2") "/tmp/tests")
     54(install-file (glob "file*") "/tmp/tests")
     55(install-file "file1" "/tmp/tests" mode: 644)
     56
     57(install-directory "/tmp/tests")
     58(install-directory '("/tmp/tests"))
     59(install-directory '("/tmp/tests/a" "/tmp/tests/b"))
     60(install-directory "/tmp/tests" group: 0 owner: "mikele")
     61
     62(begin (create-symbolic-link "vi" "emacs")
     63       (file=? "emacs" "vi"))                                ;; #t
     64(begin (change-directory "C:\\Windows")
     65       (file=? "C:\\Windows\\notepad.exe" "notepad.exe"))    ;; #t
     66</enscript>
     67
    3168=== Requirements
    3269
Note: See TracChangeset for help on using the changeset viewer.