apjanke / octave-packajoozle

A just-for-fun reworking of GNU Octave's `pkg` tool
GNU General Public License v3.0
4 stars 1 forks source link

`Make release` doesn't work #36

Open cbm755 opened 5 years ago

cbm755 commented 5 years ago

No big deal, but it is mentioned in the help text of "Make". Maybe testify has this problem too?

apjanke commented 5 years ago

Added a release target. It's currently broken because the install target isn't working.

[~/local/repos/octave-packajoozle]
$ make release                                                                                                                                            master ✱ ◼
Installing package under ./target/.installation ...
octave --no-gui --silent --norc --eval ' llist_path = pkg ("local_list"); mkdir ("./target/.installation"); load (llist_path); local_packages(cellfun (@ (x) strcmp ("packajoozle", x.name), local_packages)) = []; save ("./target/.installation/.octave_packages", "local_packages"); pkg ("local_list", "./target/.installation/.octave_packages"); pkg ("prefix", "./target/.installation", "./target/.installation"); pkg ("install", "-local", "-verbose", "./target/packajoozle-0.1.0.tar.gz"); '
error: load: unable to find file /Users/janke/.octave_packages
make: *** [target/.installation/.install_stamp] Error 1

I'll get that fixed.

apjanke commented 5 years ago

Getting closer.

[~/local/repos/octave-packajoozle]
$ make release                                                                                                                                                                                           master
rm -f -r "target/packajoozle-0.0.0+"
git archive --format=tar --prefix="target/packajoozle-0.0.0+/" HEAD | tar -x
rm -f "target/packajoozle-0.0.0+/.gitignore"
tar -c -f - --posix -C "./target/" "packajoozle-0.0.0+" | gzip -9n > "target/packajoozle-0.0.0+.tar.gz"
Installing package under ./target/.installation ...
octave --no-gui --silent --norc --eval ' llist_path = pkg ("local_list"); mkdir ("./target/.installation"); load (llist_path); local_packages(cellfun (@ (x) strcmp ("packajoozle", x.name), local_packages)) = []; save ("./target/.installation/.octave_packages", "local_packages"); pkg ("local_list", "./target/.installation/.octave_packages"); pkg ("prefix", "./target/.installation", "./target/.installation"); pkg ("install", "-local", "-verbose", "./target/packajoozle-0.0.0+.tar.gz"); '
mkdir (/var/folders/_4/9mx5ryp52bb_z6drbcbrhwl40000gn/T/oct-wAU62i)
untar (./target/packajoozle-0.0.0+.tar.gz, /var/folders/_4/9mx5ryp52bb_z6drbcbrhwl40000gn/T/oct-wAU62i)
/var/folders/_4/9mx5ryp52bb_z6drbcbrhwl40000gn/T/octave-help-wwziyE:256: unknown command `2'
/var/folders/_4/9mx5ryp52bb_z6drbcbrhwl40000gn/T/octave-help-RcSwFh:253: unknown command `2'
For information about changes from previous versions of the packajoozle package, run 'news packajoozle'.
touch ./target/.installation/.install_stamp
echo Building html_dir
Building html_dir
rm -f -r "target/packajoozle-html";
octave --no-gui --silent --norc --eval ' pkg ("local_list", "./target/.installation/.octave_packages"); ' --eval ' pkg ("load", "packajoozle"); '                    \
        --eval ' pkg load generate_html; ' \
    --eval 'options = get_html_options ("octave-forge");' --eval 'options.package_doc = "packajoozle.texi";'                    \
        --eval ' generate_package_html ("packajoozle", "target/packajoozle-html", options); ';
/var/folders/_4/9mx5ryp52bb_z6drbcbrhwl40000gn/T/octave-help-p4X8Hc:257: unknown command `2'
/var/folders/_4/9mx5ryp52bb_z6drbcbrhwl40000gn/T/octave-help-5sHtQh:253: unknown command `2'
Calling makeinfo: makeinfo --verbose --force --html -o target/packajoozle-html/packajoozle/package_doc /Users/janke/local/repos/octave-packajoozle/target/.installation/packajoozle-0.0.0+/doc/packajoozle.texi --set-customization-variable 'TOP_NODE_UP_URL ../index.html' --css-ref="../../octave-forge.css" --set-customization-variable 'AFTER_BODY_OPEN <div id="packagedoccontent">
' --set-customization-variable 'PRE_BODY_CLOSE <script> write_footer (); </script></div>
'
could not open /Users/janke/local/repos/octave-packajoozle/target/.installation/packajoozle-0.0.0+/doc/packajoozle.texi: No such file or directory
error: Unable to determine the root of the HTML manual.
make: *** [target/packajoozle-html] Error 1
[~/local/repos/octave-packajoozle]
$

Looks like the generate_html package's generate_package_html function is failing because the doc/packajoozle.texi file it's expecting isn't there. Do you know what generates that file? Is that part of pkg's installation process?