Skip to content

Commit

Permalink
Integrate online documentation in repository.
Browse files Browse the repository at this point in the history
  • Loading branch information
rfivet committed Aug 14, 2024
1 parent 1ee0ebf commit 22e26fc
Show file tree
Hide file tree
Showing 4 changed files with 142 additions and 0 deletions.
Binary file added docs/img/ue_425.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/img/ue_screensize.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 27 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>µEMACS</title>
<style>
body {
width: 1024px ;
margin-left: auto ;
margin-right: auto ;
}
</style>
</head>
<body>
<h1>µEMACS</h1>

<b>µEMACS</b> (ue) based on uEmacs/PK (em) from
<a href="https://git.kernel.org/pub/scm/editors/uemacs/uemacs.git/">kernel.org</a>.
Latest version built and tested on Cygwin, Ubuntu Linux and NetBSD.
<p>
<a href="quick.html">Quick build and install</a>
<p>
<img src="img/ue_425.png" alt="µEMACS sample screenshot">

<hr>© 2020-2024 Renaud Fivet
</body>
</html>
115 changes: 115 additions & 0 deletions docs/quick.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Quick µEMACS build and install</title>
<style>
body {
width: 1024px ;
margin-left: auto ;
margin-right: auto ;
}
pre {
background-color: #F3F6FA ;
margin-left: 1% ;
margin-right: 25% ;
}
</style>
</head>
<body>
<h1>Quick µEMACS build and install</h1>

<h2>Dependencies and build environment</h2>

To build µEMACS, you need to have gcc, GNU make and ncurses development
library installed.

<h2>Checking environment</h2>

gcc and GNU make are often preinstalled with GNU make set as the default
make. Use your favorite package manager to check their availability.

<pre>
% which gcc make
/usr/bin/gcc
/usr/bin/make
% apt list gcc make
gcc/focal,now 4:9.3.0-1ubuntu2 amd64 [installed]
make/focal,now 4.2.1-1.2 amd64 [installed]
</pre>

Use your favorite package manager if they need to be installed.

<pre>% sudo apt install gcc make</pre>

To check that make is actually GNU make:

<pre>
% make --version
GNU Make 4.2.1
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
</pre>

ncurses development library usually need to be installed. Query your
favorite package manager to check which packages are available for
installation:

<pre>% apt search libncurses</pre>

Use your favorite package manager to install the needed package:

<pre>% sudo apt install libncurses-dev</pre>

On Ubuntu, apt will select the package that matches your architecture
(amd64 or i386).

<h2>Getting the sources</h2>

µEMACS source code is available on
<a href="https://github.com/rfivet/uemacs">github</a> and mirrored at
<a href="https://git.sdf.org/rfivet/uemacs">git.sdf.org</a>. From github, you
can either clone the
<a href="https://github.com/rfivet/uemacs.git">git repository</a> or download a
<a href="https://github.com/rfivet/uemacs/archive/master.zip">zip archive</a>.
<p>
Move to working directory and clone:

<pre>
% mkdir ~/Projects
% cd ~/Projects
% git clone https://github.com/rfivet/uemacs.git
</pre>

<h2>Building</h2>

<pre>
% cd ~/Projects/uemacs
% make
</pre>

If <b>GNU make</b> is not set as the default make you will have to call it
explicitly

<pre>% gmake</pre>

<h2>Testing</h2>

Start the editor:

<pre>% ./ue</pre>

To leave the editor type CTL-X CTL-C
<p>
Execute a sample script:

<pre>% ./ue -x screensize.cmd</pre>

<img src="img/ue_screensize.png" alt="Executing script screensize.cmd">

<hr>© 2020-2024 Renaud Fivet
</body>
</html>

0 comments on commit 22e26fc

Please sign in to comment.