Package DE_EPAGES::Core::API::Command
Implements script commands for use in platform-independend make files. See also: perldoc ExtUtils::Command
Example |
perl -MDE_EPAGES::Core::API::Command=chown -e chown user:group files |
@EXPORT |
Functions
chmod
Changes the file permissions on Unix using the "chmod" system command. Does nothing on Windows.
Syntax |
perl -MDE_EPAGES::Core::API::Command=chmod -e chmod -R 750 files |
chown
Changes the file ownership on Unix using the "chown" system command.. Does nothing on Windows.
Syntax |
perl -MDE_EPAGES::Core::API::Command=chown -e chown -R user:group files |
copy_dir
Copies a source directory recursively to a target directory. The target directory is created if it does not exist yet.
Syntax |
perl -MDE_EPAGES::Core::API::Command -e copy_dir [options] source target |
Input |
|
Return |
|
copy_file
Copies a source file to a target file. The target directory is created if it does not exist yet.
Syntax |
perl -MDE_EPAGES::Core::API::Command -e copy_file [options] source target |
Input |
|
Return |
|
delete_dir
Deletes the directory and all its content.
Syntax |
perl -MDE_EPAGES::Core::API::Command -e delete_dir dir |
Input |
|
Return |
|
empty_dir
Deletes all files and sub directories of a directory, but not the directory itself. Fails if the directory does not exist (except when -ifexists is used).
Syntax |
perl -MDE_EPAGES::Core::API::Command -e empty_dir [options] dir |
Input |
|
Return |
|
test
Tests if a file system name (file or directory) exists.
Syntax |
perl -MDE_EPAGES::Core::API::Command=test -e test file echo %ERRORLEVEL% |
Input |
|
Return |
|