Output directory for encoded scripts

Top  Previous  Next

You can specify an output directory for all encoded scripts when encoding from the command line. Source files will be unchanged if you specify the output directory and it differs from your source directory. The default backup option will be off when the output directory is specified. If you want to re-enable it, even when the output directory is specified, then use the -b <backup_extension> option after the output directory option.

 

Carefully specify the output folder which should never overlap with your source. The command line encoder does not do any checks for that.

 

The full directory path to source scripts will be recreated under the output directory if the full path to source files was specified. Windows users - drive names ("C:","D:",etc) will be replaced with just one letter ("C","D",etc) when recreating the path under the output directory.

 

Command line option: -o <output_dir>

 

Example 1: Encode all *.rb scripts in the current directory with recursion and put encoded files to /home/myproject/encoded.

 

>rubyencoder -r -o /home/myproject/encoded "*.rb"

 

Example 2: Encode all scripts specified in the filelist and put encoded files to /home/myproject/encoded. Additionally backup source scripts in the source directory with .bak extension.

 

>rubyencoder -o /home/myproject/encoded -b bak @filelist

 

Do not forget to quote file masks in the command line on Unix or Mac