diff --git a/pkg/omf/functions/packages/omf.packages.new.fish b/pkg/omf/functions/packages/omf.packages.new.fish index 936416a..f0726b0 100644 --- a/pkg/omf/functions/packages/omf.packages.new.fish +++ b/pkg/omf/functions/packages/omf.packages.new.fish @@ -23,7 +23,8 @@ function __omf.packages.new.from_template -a path github user name echo (basename "$file") end end) - sed "s/{{USER_NAME}}/$user/;s/{{GITHUB_USER}}/$github/;s/{{NAME}}/$name/" \ + set -l year (date +%Y) + sed "s/{{USER_NAME}}/$user/;s/{{GITHUB_USER}}/$github/;s/{{NAME}}/$name/;s/{{YEAR}}/$year/" \ $file > $target echo (omf::em)" create "(omf::off)" "(begin if test (basename $PWD) = $name diff --git a/pkg/omf/templates/pkg/LICENSE b/pkg/omf/templates/pkg/LICENSE index 8acfa2a..547de26 100644 --- a/pkg/omf/templates/pkg/LICENSE +++ b/pkg/omf/templates/pkg/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2016 {{USER_NAME}} +Copyright (c) {{YEAR}} {{USER_NAME}} Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/pkg/omf/templates/themes/LICENSE b/pkg/omf/templates/themes/LICENSE index 8acfa2a..547de26 100644 --- a/pkg/omf/templates/themes/LICENSE +++ b/pkg/omf/templates/themes/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2016 {{USER_NAME}} +Copyright (c) {{YEAR}} {{USER_NAME}} Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal