Commit ebd5febe authored by John P. Willis's avatar John P. Willis

Update license to AGPL v3, auto-gen version.h

parent 7e997f5d
Pipeline #187 passed with stage
in 12 minutes and 48 seconds
This diff is collapsed.
#!/usr/bin/bash
SEMVER=`cat sem.ver`
OS=`uname -o`
CPU=`uname -m`
COMMIT=`git rev-parse --short HEAD`
DT=`date`
HOST=`hostname -s`
VERSTR="${SEMVER}-${CPU}-${OS} (commit ${COMMIT}; ${USER}@${HOST} ${DT})"
echo "#ifndef FREEM_VERSION_H"
echo "#define FREEM_VERSION_H"
echo "#define FREEM_VERSION_ID \"${VERSTR}\""
echo "#define FREEM_VERSION_STR \"${VERSTR}\\201\""
echo "#endif"
......@@ -5,7 +5,10 @@ freem_common = iniconf.c sighnd.c init.c expr.c global.c mlib.c namespace.c oper
ssvn_event.c ssvn_global.c ssvn_job.c ssvn_lock.c ssvn_routine.c \
ssvn_system.c ssvn_window.c ssvn_z.c ssvn_zos.c strings.c symtab.c \
views.c xecline.c transact.c iftab.c journal.c merge.c mappings.c \
ipc.c
ipc.c version.h
BUILT_SOURCES = version.h
bin_PROGRAMS = freem ri
......@@ -39,4 +42,8 @@ gcompact_SOURCES = gcompact.c $(freem_common)
gverify_SOURCES = gverify.c $(freem_common)
ri_SOURCES = ri.c iniconf.c
\ No newline at end of file
ri_SOURCES = ri.c iniconf.c
version.h: ../gen_version.sh
cd ${top_srcdir} && ${SHELL} gen_version.sh > src/version.h
\ No newline at end of file
......@@ -306,10 +306,29 @@ int main (int argc, char **argv, char **envp)
}
if (direct_mode == TRUE) {
char banner[256];
snprintf (banner, 256, "FreeM %s\tCopyright (C) 2020 Coherent Logic Development LLC\tNamespace: %s\r\n\201", FREEM_VERSION_ID, nsname);
char version[256];
snprintf (version, 256, "Coherent Logic Development FreeM\r\nVersion %s\r\n\r\n\201", FREEM_VERSION_ID);
write_m (version);
write_m (" Copyright (C) 1998 MUG Deutschland\r\n\201");
write_m (" Copyright (C) 2014, 2020 Coherent Logic Development LLC\r\n\r\n\201");
write_m ("This program is free software: you can redistribute it and/or modify\r\n\201");
write_m ("it under the terms of the GNU Affero General Public License as published by\r\n\201");
write_m ("the Free Software Foundation, either version 3 of the License, or\r\n\201");
write_m ("(at your option) any later version.\r\n\r\n\201");
write_m ("This program is distributed in the hope that it will be useful,\r\n\201");
write_m ("but WITHOUT ANY WARRANTY; without even the implied warranty of\r\n\201");
write_m ("MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r\n\201");
write_m ("GNU Affero General Public License for more details.\r\n\r\n\201");
write_m ("You should have received a copy of the GNU Affero General Public License\r\n\201");
write_m ("along with this program. If not, see <https://www.gnu.org/licenses/>.\r\n\r\n\201");
write_m (banner);
}
else {
write_m ("\r\n\r\n\201");
......
#ifndef FREEM_VERSION_H
#define FREEM_VERSION_H
#define FREEM_VERSION_ID "0.2.0"
#define FREEM_VERSION_STR "0.2.0\201"
#endif
\ No newline at end of file
......@@ -2693,7 +2693,7 @@ for_quit:
case GOTO:
do_goto:;
do_goto:
offset = 0;
label[0] = routine[0] = EOL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment