Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Insteon: Fix Path Comparison in Windows for Update_Docs.pl #238

Merged
merged 1 commit into from
Jul 29, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion bin/update_docs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ BEGIN {
use strict;
use warnings;
use Pod::Html;
use Cwd qw(abs_path);

# Get parms from mh.ini
require 'handy_utilities.pl';
Expand Down Expand Up @@ -242,7 +243,8 @@ closedir POD;
# delete html files from docs dir if out dir is diff and pod exists
my $docsi = ( stat($docdir) )[1];
my $outi = ( stat($outdir) )[1];
if ( $docsi eq $outi ) {
if ((($docsi == $outi) && ($outi == 0) && (abs_path($docdir) eq abs_path($outdir)))
|| (( $docsi eq $outi ) && ($outi != 0))) {
print "you should set the html_alias2_docs directory to a place outside"
. " the mh distribution\n directory. Otherwise, everytime this script is"
. " run, you will alter\n your distribution files.";
Expand Down