1
0
Fork 0
Commit Graph

141 Commits

Author SHA1 Message Date
Witold Filipczyk 86285f9f66 [conv] Minus instead of dot 2024-03-16 12:33:56 +01:00
Witold Filipczyk 6e4540cde7 [perl] use Array::Base +1
Script modified. Likely not all is correct.
Old version did not work with current Perl version.
2024-03-13 17:38:06 +01:00
jon d4b52d5bc4 [bookmarks] Script to convert bookmarks from links2 to elinks 2024-03-13 10:32:17 +01:00
Witold Filipczyk 5d7403d23a [tcc] Skip -Wl,--no-copy-dt-needed-entries 2023-12-01 12:54:07 +01:00
Witold Filipczyk 33c30a7840 [tcc] Wrapper for tcc to use with meson
meson does not support tcc yet, but with this wrapper you can build
elinks (no js version) with meson and save a few seconds.
This wrapper pretends to be gcc for meson.
While compiling it filters unsupported options, and execute tcc.

Compile it as:
gcc -O2 -o elinks_tcc elinks_tcc.c

Here is my mes_tcc.sh:
rm -rf /dev/shm/builddir2
export C_INCLUDE_PATH=/usr/local/lib/tcc/include:$HOME/include:/usr/include:/usr/local/include
CPPFLAGS="-I$HOME/include" \
CC=elinks_tcc \
meson setup /dev/shm/builddir2 \
-D88-colors=false \
-D256-colors=true \
-Dapidoc=false \
-Dbacktrace=false \
-Dbittorrent=false \
-Dbookmarks=false \
-Dbrotli=true \
-Dbzlib=false \
-Dcgi=true \
-Dcombining=true \
-Dfastmem=true \
-Dgemini=true \
-Dgettext=true \
-Dgnutls=true \
-Dgopher=true \
-Dgpm=false \
-Dguile=false \
-Dhtmldoc=false \
-Dlibcss=true \
-Dlibev=false \
-Dlibevent=true \
-Dopenssl=false \
-Dluapkg='luajit' \
-Dlzma=false \
-Dnls=true \
-Dnntp=false \
-Dpdfdoc=false \
-Dperl=false \
-Dprefix=$HOME \
-Dpython=false \
-Druby=false \
-Dsm-scripting=false \
-Dspidermonkey=false \
-Dterminfo=true \
-Dtre=false \
-Dtrue-color=true \
-Dutf-8=true \
-Dwithdebug=false \
-Dx=false \
-Dzlib=true \
-Dzstd=true

ninja -C /dev/shm/builddir2
2023-11-29 16:05:21 +01:00
Witold Filipczyk 748407dee5 [clipboard] wayland version of clipboard scripts 2023-05-13 12:35:14 +02:00
Witold Filipczyk 9396600f7b [contrib] Removed debian. Refs #232
Newer files one can find in debian repository.
2023-05-10 09:16:33 +02:00
أحمد المحمودي (Ahmed El-Mahmoudy) 272c824dbe Fix watch file
It would be better to remove this file (or even the whole
contrib/debian dir), as it confuses uscan
2023-05-10 01:36:49 +02:00
Witold Filipczyk 060abde3d6 [config] Changed in more places ~/.elinks -> ~/.config/elinks 2023-01-26 12:41:46 +01:00
Witold Filipczyk 3af1280501 [.mailcap] Seems that filenames with apostrohes and brackets are not handled properly
Compile: gcc -o echo.exe echo.c
2022-07-18 16:12:22 +02:00
Witold Filipczyk 9b367de33b [contrib] .mailcap entry and systemd unit for playing audio with mpv 2022-07-18 16:07:10 +02:00
André Schröder b5379b4166 [doc] Update ECMAScript documentation
elinks supports SpiderMonkey 78 (from 2020) and not only 1.5 (from
2000). This is not documented yet.

Removed `js-1.5-rc6a+elinks.patch` because the Meson build script expect
SpiderMonkey 78 for which this patch is irrelevant. Also, you can build
elinks with the vanilla SpiderMonkey 78, that is without needing to
apply any patch.

Removed the documentation on building SpiderMonkey 1.5 because this is
not relevant anymore.

Updated the documentation to use `meson build` instead of `autogen.sh`.
I think the autogen.sh doesn't yet support new SpiderMonkey versions.
2022-03-15 12:47:21 +01:00
Witold Filipczyk 701f66dc11 [systemd] clip.sh.service unit 2021-11-30 19:40:09 +01:00
Witold Filipczyk 1f57e72212 [mozjs24] Allow build elinks with g++
SpiderMonkey was updated to mozjs24. If you want to build elinks
with ecmascript support, you must compile using g++ with -fpermissive .
There is a lot of warnings.
There are some memleaks in ecmascript code, especially related to JSAutoCompartment.
I don't know yet, where and how to free it.

Debian does not support mozjs24, so I'm going to gradually update SpiderMonkey version.
2020-10-05 20:14:55 +02:00
Witold Filipczyk 3f8de99828 [pod2hml] podchecker reported some errors about hooks.pl 2020-09-20 22:20:27 +02:00
Witold Filipczyk 30400f7367 [meson] Added contrib 2020-09-11 21:08:34 +02:00
Witold Filipczyk 2a16aa91fe [meson] Generate elinks.spec and changes in contrib 2020-09-07 17:48:37 +02:00
Witold Filipczyk 5169f78a4a [python] Sample google redirect 2020-08-28 12:29:31 +02:00
Witold Filipczyk 911155a862 [clipboard] Added "ui.clipboard_file" to add text to the system clipboard.
ui.clipboard_file is filename of the clipboard file. This file can be a named pipe.
See contrib/clipboard/clip.sh how to set up copying to clipboard using socat and xclip.
Just run clip.sh (it will be running in a loop) before starting elinks and
set ui.clipboard_file = "~/.elinks/clipboard.fifo".
2020-07-27 22:38:54 +02:00
Witold Filipczyk 8e36753bbc [debian] --with-luapkg=lua5.1 2020-07-10 16:55:57 +02:00
Witold Filipczyk b3ae1caf8b [lua] foreachi replaced by ipairs. Refs #46 2020-05-22 20:59:06 +02:00
أحمد المحمودي (Ahmed El-Mahmoudy) 52d492abd3 Update watch file 2020-02-05 16:22:40 +01:00
Witold Filipczyk 0eaf9526bb [python3] proxy.py ported to python3. Refs #38 2020-01-04 16:05:10 +01:00
Witold Filipczyk b3e01b3298 [scripting] python scripting with Python3.
Only utf-8 encoding is supported.
2019-11-11 13:33:37 +01:00
Felix Janda 254f440de4 Remove references to internal-hooks.scm 2018-02-24 15:08:17 -05:00
Kalle Olavi Niemitalo e17e5fe435 mkdist: Don't copy manual.html-chunked.tar.gz 2010-09-15 23:06:19 +03:00
Simon Ruderich d4b008312a contrib/user.css: Documentation improvement
In contrib/user.css, point out that document.colors.use_document_colors
must be enabled for colors to work and ELinks must be compiled with
--enable-html-highlighting for HTML highlighting to work.
2010-08-11 17:10:01 +00:00
Kalle Olavi Niemitalo 822e9d6921 Merge branch 'elinks-0.12' into elinks-0.13
Conflicts:
	NEWS
	po/fr.po: kept version from elinks-0.13
	src/viewer/dump/dump.c
2009-06-12 23:18:46 +03:00
Kalle Olavi Niemitalo 87e88df268 mkdist: Don't create a .git directory.
That was a remnant from the time when mkdist created a .git/HEAD
referring to the commit from which the distribution was made.
Nowadays, it creates git-commit-id instead.
2009-06-03 10:55:18 +03:00
Kalle Olavi Niemitalo 683cfe4c86 Merge branch 'elinks-0.12' into elinks-0.13
Conflicts:
	NEWS: merged
	configure.in: VERSION changed in elinks-0.12; kept 0.13.GIT
	doc/man/man1/elinks.1.in: regenerated
	doc/man/man5/elinks.conf.5: regenerated
	doc/man/man5/elinkskeys.5: regenerated
	po/fr.po: kept 0.13.GIT
	po/pl.po: kept 0.13.GIT
2009-05-31 16:18:23 +03:00
Kalle Olavi Niemitalo 9e3762e01c gpm-wheel.patch is not needed in 1.20.3pre5 and later 2009-05-31 10:57:46 +03:00
M. Levinson b41e738905 Since commit 2c14587b88, the sample
hooks.py file in the ELinks distribution will fail with an ImportError
exception for any user who hasn't also installed contrib/python/lp3.py.

For the benefit of users who may not otherwise need that file, I'd
suggest delaying the import of lp3 until it's actually used so that
the rest of hooks.py will still work without it.
2009-02-15 19:58:42 +01:00
Witold Filipczyk b536802b9c Small improvement in lp3.py. 2009-02-08 18:10:17 +01:00
Witold Filipczyk 2c14587b88 Added the lp3.py to let elinks users listen to the lp3. 2009-02-08 17:49:33 +01:00
Witold Filipczyk fb05ed1fa2 youtube2.js: Show link to the video instead of the <meta refresh../>. 2009-01-03 17:39:02 +01:00
Kalle Olavi Niemitalo 9954d37a68 Move most of contrib/smjs/README into the manual.
Also document elinks.vs and elinks.action.

<kahmalo> Miciah: IMO most of contrib/smjs/README should be moved into
    the ELinks manual.  Specifically the parts that do not depend on
    contrib/smjs/hooks.js.  However manual.txt contains a notice:
    "Hold blameless the authors.  Any lawful use is allowed."  Will
    you allow that also for what is now in contrib/smjs/README?
<Miciah> Absolutely.
<Miciah> In fact, I would allow some lawless uses.
<Miciah> It seems a little silly to say that lawful uses are allowed.
2008-07-10 20:31:22 +03:00
Kalle Olavi Niemitalo 06c39a8ac4 Bug 951: Lock the cache entry while the hook runs. 2008-07-08 15:20:38 +03:00
Kalle Olavi Niemitalo 4ffe6a1b6d mkdist: include po/elinks.pot 2008-07-04 23:56:10 +03:00
Kalle Olavi Niemitalo 14cb43f403 grafthistory: support curl
Mac OS X comes with curl (in the com.apple.pkg.BSD package)
but not with wget.
2008-07-02 20:31:11 +03:00
Kalle Olavi Niemitalo d5dcdb4d92 mkdist: separate md5 file for each file
md5sum -c exits with code 1 if some of the files listed in the md5
file are missing, so each md5 file should list only those files that
the user is supposed to download together.  This is also how
elinks-web/download.html has been set up.
2008-07-02 01:06:43 +03:00
Kalle Olavi Niemitalo 9b7de0a039 mkdist: create git-commit-id instead of .git/HEAD
.git/HEAD in elinks-0.12pre1.tar.gz broke git-import-orig in Debian's
git-buildpackage 0.4.33:

$ git init
Initialized empty Git repository in .git/
$ git-import-orig ~/src/elinks-seek/elinks-0.12pre1.tar.gz
Upstream version is 0.12pre1
Initial import of '/home/Kalle/src/elinks-seek/elinks-0.12pre1.tar.gz' ...
fatal: bad object HEAD
Traceback (most recent call last):
  File "/usr/bin/git-import-orig", line 243, in <module>
    sys.exit(main(sys.argv))
  File "/usr/bin/git-import-orig", line 201, in main
    import_upstream_tree(repo, orig_dir, version, options.filters, verbose=not is_empty)
  File "/usr/bin/git-import-orig", line 65, in import_upstream_tree
    if replace_source_tree(repo, src_dir, filters, verbose=True):
  File "/var/lib/python-support/python2.5/gbp/git_utils.py", line 145, in replace_source_tree
    return not repo.is_clean()[0]
  File "/var/lib/python-support/python2.5/gbp/git_utils.py", line 78, in is_clean
    if out[0].startswith('#') and out[1].strip().startswith(clean_msg):
IndexError: list index out of range

So let's try with a "git-commit-id" file outside of .git/ instead.
I also considered ".git-commit-id" but that could give the impression
that Git itself reads the file for some purpose.
2008-07-01 02:50:27 +03:00
Kalle Olavi Niemitalo 2338d9124a mkdist: build documentation unless -d given
The documentation has version numbers in a few places and it's easier
to get those right this way than by building it elsewhere before
running mkdist.  This change slows down mkdist but ccache can mitigate
some of that and snapshots use prebuilt documentation anyway.
2008-06-30 20:36:56 +03:00
Kalle Olavi Niemitalo 6e3011b29a mkdist: use git instead of cogito
<http://git.or.cz/cogito/> says Cogito is deprecated and unmaintained.
2008-06-30 20:36:54 +03:00
Kalle Olavi Niemitalo 80aa801e6a mkdist: avoid echo
According to SUSv3, "New applications are encouraged to use printf
instead of echo."
2008-06-30 20:36:52 +03:00
Kalle Olavi Niemitalo 46eeac0aeb s/elinks\.or\.cz/elinks.cz/ in contrib/debian/
Inspired by commit 5999d1ef06
in ELinks 0.11.3.GIT.
2008-02-28 11:55:24 +02:00
Jonas Fonseca bc04050126 Fix typo
(cherry picked from commit c808063946)
2008-02-28 11:52:45 +02:00
Kalle Olavi Niemitalo d2c5aeb2c7 grafthistory: keep the downloaded pack, speed up git gc
To segregate the historical commits (can't remember why),
I originally placed their pack in an alternate object store,
but later I found that a *.keep file does the job as well.
This gives a considerable speedup in git gc.  It takes some
more disk space but OTOH you might then run gc more often
and have fewer loose objects.

real      user      sys      (tested in this order)
1m15.900s 0m59.732s 0m4.336s gc after clone&graft without *.keep
0m23.162s 0m17.549s 0m1.588s gc after clone&graft with *.keep
0m06.932s 0m04.440s 0m0.588s gc after clone&graft&gc with *.keep
0m32.214s 0m24.138s 0m2.284s gc after clone&graft&gc without *.keep

Total size of .git/objects/pack/ was 90592 KiB without *.keep
and 97397 KiB with *.keep.  So *.keep reduced gc time by 70-80%
but increased disk space usage by 7.5%.
2008-02-28 10:55:47 +02:00
Kalle Olavi Niemitalo 6139c2ffb5 grafthistory: comment about downloading the pack index 2008-02-24 22:24:33 +02:00
Kalle Olavi Niemitalo bc42af691b grafthistory: exit if a command fails 2008-02-24 22:23:39 +02:00
Kalle Olavi Niemitalo 31255d4a4d grafthistory: git-* commands are deprecated
The fully dashed form git-update-server-info is deprecated
in Git 1.5.4 and will cease to work in Git 1.6.0 (unless
PATH is modified).  Use git update-server-info instead.
2008-02-24 22:13:00 +02:00