Skip to content

Commit

Permalink
Cleaned up unnecessary defines: PATH@, VERSION@, DOC@
Browse files Browse the repository at this point in the history
  • Loading branch information
Bartholdi Laurent committed Mar 3, 2016
1 parent b8056a0 commit f6053bc
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 35 deletions.
8 changes: 4 additions & 4 deletions PackageInfo.g
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
SetPackageInfo( rec(
PackageName := "fr",
Subtitle := "Computations with functionally recursive groups",
Version := "2.3.3",
Date := "27/02/2016",
Version := "2.3.4",
Date := "03/03/2016",
## <#GAPDoc Label="Version">
## <!ENTITY Version "2.3.3">
## <!ENTITY Date "27/02/2016">
## <!ENTITY Version "2.3.4">
## <!ENTITY Date "03/03/2016">
## <#/GAPDoc>
ArchiveURL := Concatenation("https://github.com/gap-packages/fr/releases/download/v",~.Version,"/fr-",~.Version),
ArchiveFormats := ".tar.gz",
Expand Down
21 changes: 1 addition & 20 deletions gap/helpers.gi
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
##
#W helpers.gi Laurent Bartholdi
##
#Y Copyright (C) 2012-2013, Laurent Bartholdi
#Y Copyright (C) 2012-2016, Laurent Bartholdi
##
#############################################################################
##
Expand All @@ -11,25 +11,6 @@
##
#############################################################################

#############################################################################
##
#W Compile documentation
##
BindGlobal("PATH@", PackageInfo("fr")[1].InstallationPath);
VERSION@ := Filename(DirectoriesPackageLibrary("fr",""),".version");
if VERSION@<>fail then
VERSION@ := ReadLine(InputTextFile(VERSION@));
Remove(VERSION@); # remove \n
fi;
MakeReadOnlyGlobal("VERSION@");

BindGlobal("DOC@", function() MakeGAPDocDoc(Concatenation(PATH@,"/doc"),"fr",
["../gap/frmachine.gd","../gap/frelement.gd","../gap/mealy.gd",
"../gap/group.gd","../gap/vector.gd","../gap/algebra.gd",
"../gap/examples.gd","../gap/helpers.gd","../gap/perlist.gd","../gap/cp.gd",
"../PackageInfo.g"],"fr","../../.."); # "http://www.gap-system.org/Manuals");
end);

BindGlobal("INSTALLPRINTERS@", function(filter)
InstallMethod(PrintObj, "(FR)", [filter], 2*SUM_FLAGS, function(x) Print(String(x)); end);
InstallMethod(ViewObj, "(FR)", [filter], 2*SUM_FLAGS, function(x) Print(ViewString(x)); end);
Expand Down
4 changes: 1 addition & 3 deletions gap/vhgroup.gi
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
##
#W vhgroup.gi Laurent Bartholdi
##
#H @(#)$Id$
##
#Y Copyright (C) 2007, Laurent Bartholdi
#Y Copyright (C) 2007-2016, Laurent Bartholdi
##
#############################################################################
##
Expand Down
4 changes: 1 addition & 3 deletions init.g
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
##
#W init.g Laurent Bartholdi
##
#H @(#)$Id$
##
#Y Copyright (C) 2006, Laurent Bartholdi
#Y Copyright (C) 2006-2016, Laurent Bartholdi
##
#############################################################################
##
Expand Down
8 changes: 3 additions & 5 deletions read.g
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
##
#W read.g Laurent Bartholdi
##
#H @(#)$Id$
##
#Y Copyright (C) 2006, Laurent Bartholdi
#Y Copyright (C) 2006-2016, Laurent Bartholdi
##
#############################################################################
##
Expand Down Expand Up @@ -81,8 +79,8 @@ else
fi;
InstallMethod(Decomposition, [IsFRElement], DecompositionOfFRElement);

while not IsEmpty(POSTHOOK@fr) do Remove(POSTHOOK@fr)(); od;
Unbind(POSTHOOK@fr);
while not IsEmpty(POSTHOOK@FR) do Remove(POSTHOOK@FR)(); od;
Unbind(POSTHOOK@FR);

if IsBound(IO_Pickle) then
ReadPackage("fr","gap/pickle.g");
Expand Down

0 comments on commit f6053bc

Please sign in to comment.