Commit Graph

71 Commits

Author SHA1 Message Date
Alex Schroeder
b514ea7846 Fix TRANSLATIONS glob in the Makefile
The current code always resulted in an empty list of files for
TRANSLATIONS; the did not end up in the build directory; and they did
not get installed elsewhere.
2021-08-08 09:10:38 +02:00
Alex Schroeder
278fad1f43 Fixed development target in Makefile
The problem is that by default the test-data/config file contains
$ScriptName = 'http://localhost/wiki.pl' but morbo serves the site at
http://127.0.0.1:8080. We therefore append a new $ScriptName
assignment if the correct one doesn't exist. The alternative is
tricky because of the /wiki.pl prefix; fixing that would require a lot
more code, I suspect.
2020-10-25 10:31:36 +01:00
Alex Schroeder
65012eacbb gemini-server: add history page support
Makefile now also has a gemini target to start up a gemini wiki. It
also calls openssl to generate keys if necessary.

gemini-server.pl now also has log messages in the various functions
serving content, instead of having some of them in the main function.
The footer is printed in a separate function.
2020-06-15 17:19:56 +02:00
Alex Schroeder
2cba2d30b7 Makefile: add a morbo target
This makes it easy to quickly deploy the wiki standalone using
Mojolicious. It reloads automatically when any of the relevant files
are changed. This might be easier to work with than a local webserver
installation.
2019-07-16 23:02:10 +02:00
Alex Schroeder
37c4a19f1f Makefile: sort modules
This makes sure that translations have small diffs.
2018-11-21 10:11:48 +01:00
Alex Schroeder
883f07f926 Fix URL in Makefile 2018-08-06 12:07:18 +02:00
Alex Schroeder
b116a0103e Perl 5.26 no longer adds . to @INC
This is why all the tests requiring t/test.pl had to be changed.
Similarly, the main script loads config and modules using the same
mechanism and paths had to be similarly qualified: prepending './'.
2017-11-03 17:51:30 +01:00
Alex Schroeder
6a7a0dd24d Makefile: Don't set PERL5LIB if it is already set 2017-11-03 13:05:46 +01:00
Alex Schroeder
4da50ef125 Summary: Export PERL5LIB for Alexine
Try again, now using the current directory in the test target of the
Makefile instead of changing run-tests.
2017-11-03 10:48:16 +01:00
Alex Schroeder
2488ccdb8c Makefile now looks for https instead of http 2017-04-11 12:50:09 +02:00
Alex Schroeder
8e3e186fab Fix make release target 2016-07-06 18:14:47 +02:00
Alex Schroeder
2111af2ec8 Fix regular expression in Makefile
Unescaped left brace in regex is illegal in regex.
2016-06-16 09:43:08 +02:00
Alex Schroeder
64e7183896 stuff/release is new 2015-12-19 11:54:19 +01:00
Aleks-Daniel Jakimenko-Aleksejev
0e5f338b40 Prioritize slow tests
By using 「--state=slow,save」 we can probably crunch all tests faster (better
wallclock time). Some tests are taking a lot of time simply because of the
delays (sleeping), so it makes sense to start these tests earlier.
2015-10-21 13:15:34 +03:00
Alex Schroeder
e4f7500340 month-names, national-days: delete cruft
An error in the Makefile treated all *.pl files in the translations
directory as translation files -- including these other files which are
not regular translation files.
2015-10-14 12:23:18 +02:00
Aleks-Daniel Jakimenko
ce2a39d8f1 Allow custom setting for --jobs in make test 2015-10-13 03:21:11 +03:00
Alex Schroeder
6372907c4b Parallelize tests
Using random numbers to generate new test-directories for every test
file. Use t/setup.pl to reset.
2015-10-12 15:13:22 +02:00
Alex Schroeder
da5c5a8275 New make target: new-utf8.pl
Changes to oddtrans make sure that lines starting with # are comments
and will be stripped when the translation file is read. When writing new
translation files, comments are added to indicate which files are being
processed right now. This will help translators figure out where the
texts originated from. Note that every key appears only once, so
translations will be missing in the section for later files if they
appeared in earlier sections.

Recreated new-utf8.pl in order to illustrate the new format.
2015-09-30 17:35:02 +02:00
Alex Schroeder
d1f9c401cd Makefile stripped of untested junk
The Mac subdirectory and all the instructions of how to build and
install Oddmuse on a Mac using the OSX tools have been deleted.

The Slack subdirectory and all the instructions of how to build and
install Oddmuse on Slackware have been deleted.

The contrib/simple-install subdirectory and all the instructions on how
to quickly and easily install Oddmuse using Creole have been deleted.
2015-07-21 09:21:13 +02:00
Alex Schroeder
0949b1556d Makefile: move test target up 2015-05-01 19:33:14 +02:00
Alex Schroeder
a97f6baadf Makefile treats month-names-*.pl differently
Since these files are no longer in modules/ but in
modules/translations, something had to be done.
2015-04-03 09:21:37 +02:00
Alex Schroeder
2cf943d178 Makefile: more fixing for prepare target
The prepare target didn't handle wiki.pl itself correctly. This has been
fixed. The command to add the git tag was changed from sed to perl, like
for the other targets. As emoji.pl and smiles.pl refer to permanent
anchors, the addition of the anchor parameter to AddModuleDescription
was obviously misguided and I reverted it.
2014-08-24 22:20:50 +02:00
Alex Schroeder
f91041b677 Handle AddModuleDescription for translations
The Makefile didn't add tag information for translation files when
running 'make prepare'. This has been fixed. As we cannot have a slash
in the file name, as slashes get escaped in UrlEncode, a new parameter
was added to AddModuleDescription and the Makefile will now set this
parameter for translation files such that the source link will point to
the correct directory ("translations/").
2014-08-24 21:25:38 +02:00
Alex Schroeder
9ba5b119f8 Fix module description to handle version tag.
This makes sure that "make prepare" works once again by allowing an
optional argument to AddModuleDescription with the tag.
AddModuleDescription now also takes an optional anchor which is used by
emoji.pl and smiles.pl.

This commit also updates all the translation files and makes sure that
they all use AddModuleDescription.
2014-08-24 12:31:15 +02:00
Alex Schroeder
b7c1045783 Help users unlock a wiki.
When a lock is blocking the user, offer them a way to unlock the wiki.

Also, update the German translations.
2014-08-21 01:08:25 +02:00
Alex Schroeder
be4bddab30 No longer recreate -utf8 files. 2012-11-16 21:49:56 +01:00
Alex Schroeder
a046436a50 Deutsche Übersetzung auf Vordermann gebracht. 2012-10-27 13:56:40 +02:00
Alex Schroeder
9c996cee04 No longer call oddtrans when modules are changed because of encoding errors introduced. 2012-07-19 09:07:59 -04:00
Alex Schroeder
67d68a370a Merge branch 'master' of ssh://as@git.sv.gnu.org/srv/git/oddmuse
Conflicts:

	Makefile
2012-07-19 04:49:13 -04:00
Alex Schroeder
ccef879ac1 Added "prepare" target to Makefile to add version info to all the sources.
.gitignore added build directory and stuff created by the Mac disk image rules.
2012-07-18 18:34:57 +02:00
Alex Schroeder
17dbca2353 current.pl target now depends on always
The identifier added changes with every commit. A dependency
on wiki.pl alone doesn't work. That's why it now depends on
"always" which is phony.
2012-04-25 04:22:38 -04:00
Alex Schroeder
348f4bcf3b rule to create current.pl from wiki.pl
The file current.pl is the same as wiki.pl but it's
$WikiDescription now contains the git description --tags
output and links to the appropriate entry in
http://git.savannah.gnu.org/cgit/oddmuse.git/refs/
2012-04-24 00:49:27 +02:00
Alex Schroeder
2dbd7bea34 Removed web update code. 2011-04-27 19:22:17 +00:00
Alex Schroeder
25e020e4f5 Added simple-install targets. 2009-11-22 17:11:03 +00:00
Alex Schroeder
7aec649ffb (DIST): Remove weird Mac targets and move them to OLDDIST. 2009-06-07 23:32:39 +00:00
Alex Schroeder
bf7f991af2 (upload-translations): No longer upload to
emacswiki.org; provide secret using -z.
2009-06-07 22:49:20 +00:00
Alex Schroeder
85884faae9 (VERSION_NO): Fixed the command to extract the version
number from wiki.pl because the CVS Id tag now appears twice.
2008-12-06 01:34:10 +00:00
Alex Schroeder
a551d88772 (VERSION_NO): Fix regular expression that determines
the version number to use.
2008-02-22 22:33:31 +00:00
Alex Schroeder
a44fdf7d15 (upload): Use scp instead of ftp. 2007-08-19 15:49:52 +00:00
Alex Schroeder
c0b82c8ea4 Various changes to decouple the production of dist files from the
merging of webpages for the translations.
2007-08-19 15:38:23 +00:00
Alex Schroeder
9ceda81cdf (%-utf8.pl): Take advantage of caching when
downloading.
2007-08-19 12:11:31 +00:00
Alex Schroeder
e2c63988eb (test): Use prove instead of a direct perl call. 2007-08-19 09:58:58 +00:00
Alex Schroeder
48ab7c22de More fiddling with the Slackware .tgz rule. 2006-10-22 17:21:26 +00:00
Alex Schroeder
c2a34c1ad7 Added rule for Slackware package. 2006-10-22 17:10:36 +00:00
Alex Schroeder
9e5bef21f4 Added rule to build package and disk-image for Mac OSX
releases.
2006-10-21 21:35:10 +00:00
Alex Schroeder
574d9ff08c Added rules to make .pkg and .dmg, changed some rules
to refer to $@.
(PACKAGEMAKER): New.
(PWD): New.
(upload): Add .dmg and .dmg.sig.
2006-10-15 19:28:25 +00:00
Alex Schroeder
92660aa025 Removed old test target. 2006-09-19 23:56:28 +00:00
Alex Schroeder
d60675efc8 (test): Replace call to test.pl with a Test::Harness
call.
(oldtest): Keep the old tests until migrated.
2006-09-19 11:05:01 +00:00
Alex Schroeder
99eb7c9277 (upload): Upload oddmuse-inkscape tarball, too.
($(UPLOADVERSION).tar.gz): Build oddmuse-inkscape tarball.
(UPLOADVERSION, INKSCAPE): New file lists.
2006-08-31 18:23:40 +00:00
Alex Schroeder
8c0bb736dd (test): Add beep at the end. 2006-03-18 19:54:43 +00:00