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

Update download.pod for v3.0, fix update_docs #331

Merged
merged 1 commit into from
Dec 19, 2013
Merged
Show file tree
Hide file tree
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
9 changes: 7 additions & 2 deletions bin/update_docs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ my ( %config_parms, %parms );
my $docdir = "../docs";
my $outdir = $config_parms{html_alias2_docs};
my $libdir = '../lib';
$outdir = '../docs' unless $outdir and -d $outdir;
$outdir = '../docs' unless $outdir;
mkdir "$outdir" unless -d "$outdir";

-d $docdir || die "directory $docdir doesn't exist";
-d $outdir || die "directory $outdir doesn't exist";
Expand All @@ -85,6 +86,9 @@ mkdir "$outdir/lib" unless -d "$outdir/lib";
my ($ipod, $mpod, %packages);
my $changes = 0;

print("[bin/update_docs] \$docdir:$docdir\n");
print("[bin/update_docs] \$outdir:$outdir\n");
print("[bin/update_docs] \$libdir:$libdir\n");
# Generate the list of directories to scan for pm or pl files
my %libsubdirs;
opendir LIB, $libdir || die "can't open $libdir directory: $!";
Expand Down Expand Up @@ -243,11 +247,12 @@ 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];
print("[bin/update_docs] \$docsi:$docsi \$outi:$outi\n");
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.";
. " run, you will alter\n your distribution files.\n";
}
else {
# the following would delete files from the distribution docs dir
Expand Down
82 changes: 0 additions & 82 deletions docs/download.html

This file was deleted.

17 changes: 12 additions & 5 deletions docs/download.pod
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
=begin comment

!!Note that if you change the format or layout of this page you must also
modify the code/common/mh_release.pl file to search the new format!!

=end comment

=head1 Download Misterhouse

=head1 Current
=head1 Current Stable

B<Version 2.200> - released on 03/02/2012
B<Version 3.0> - released on 06/20/2013

=over

=item * For Linux, Windows and MacOS: L<https://github.com/hollie/misterhouse/archive/stable.zip>
=item * For Linux, Windows and MacOS: L<https://api.github.com/repos/hollie/misterhouse/zipball/v3.0>

=item * The Windows only compiled version of Misterhouse is sadly no longer supported.

Expand All @@ -18,11 +25,11 @@ B<Version 2.200> - released on 03/02/2012

=head1 Previous Stable

B<Version 2.105> - released on 12/01/2008
B<Version 2.200> - released on 03/02/2012

=over

=item * L<http://prdownloads.sourceforge.net/misterhouse/misterhouse_src_2105.zip>
=item * L<https://api.github.com/repos/hollie/misterhouse/zipball/v2.200>

=back

Expand Down
2 changes: 1 addition & 1 deletion lib/Insteon/MessageDecoder.pm
Original file line number Diff line number Diff line change
Expand Up @@ -919,7 +919,7 @@ You can find documentation for this module with the perldoc command.

=head1 SEE ALSO

L<Insteon Command Tables 20070925a|www.insteon.net/pdf/INSTEON_Command_Tables_20070925a.pdf>
L<http://www.insteon.net/pdf/INSTEON_Command_Tables_20070925a.pdf>

PLM command details can be found in the 2412S Developers Guide. This
document is not supplied by SmartHome but may be available through an
Expand Down
4 changes: 2 additions & 2 deletions lib/Insteon/PLMTerminal.pl
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ =head1 OPTIONS AND ARGUMENTS

=head1 SEE ALSO

L<Insteon Command Tables 20070925a|www.insteon.net/pdf/INSTEON_Command_Tables_20070925a.pdf>
L<http://www.insteon.net/pdf/INSTEON_Command_Tables_20070925a.pdf>

PLM command details can be found in the 2412S Developers Guide. This
document is not supplied by SmartHome but may be available through an
Expand Down Expand Up @@ -341,4 +341,4 @@ =head1 LICENSE AND COPYRIGHT
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02110-1301, USA.

=cut
=cut