[gnome-builder] plugins/snippets: use proper variable for current year



commit 172511fac5bed5aab0957df20e2033a77f4f878f
Author: Christian Hergert <chergert redhat com>
Date:   Mon Aug 1 11:45:30 2022 -0700

    plugins/snippets: use proper variable for current year
    
    This changed when it was moved to GtkSourceView.
    
    Fixes #1739

 src/plugins/snippets/snippets/licenses.snippets | 34 ++++++++++++-------------
 src/plugins/snippets/snippets/rpmspec.snippets  |  6 ++---
 2 files changed, 20 insertions(+), 20 deletions(-)
---
diff --git a/src/plugins/snippets/snippets/licenses.snippets b/src/plugins/snippets/snippets/licenses.snippets
index 3116ee635..de7af6a00 100644
--- a/src/plugins/snippets/snippets/licenses.snippets
+++ b/src/plugins/snippets/snippets/licenses.snippets
@@ -3,7 +3,7 @@
   <snippet _name="agpl" trigger="agpl" _description="">
     <text languages="c;chdr;cpp;css;js;vala;java;"><![CDATA[/* ${1:$filename}
  *
- * Copyright $year ${2:$fullname} <${3:$email}>
+ * Copyright $CURRENT_YEAR ${2:$fullname} <${3:$email}>
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU Affero General Public License as
@@ -24,7 +24,7 @@ $0
 ]]></text>
     <text languages="python;python3;"><![CDATA[# ${1:$filename}
 #
-# Copyright $year ${2:$fullname} <${3:$email}>
+# Copyright $CURRENT_YEAR ${2:$fullname} <${3:$email}>
 #
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU Affero General Public License as
@@ -44,7 +44,7 @@ $0
 ]]></text>
     <text languages="c-sharp;rust;"><![CDATA[// ${1:$filename}
 //
-// Copyright $year ${2:$fullname} <${3:$email}>
+// Copyright $CURRENT_YEAR ${2:$fullname} <${3:$email}>
 //
 // This program is free software: you can redistribute it and/or modify
 // it under the terms of the GNU Affero General Public License as
@@ -66,7 +66,7 @@ $0
   <snippet _name="apache" trigger="apache" _description="">
     <text languages="c;chdr;cpp;css;js;vala;java;"><![CDATA[/* ${1:$filename}
  *
- * Copyright $year ${2:$fullname} <${3:$email}>
+ * Copyright $CURRENT_YEAR ${2:$fullname} <${3:$email}>
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -86,7 +86,7 @@ $0
 ]]></text>
     <text languages="python;python3;"><![CDATA[# ${1:$filename}
 #
-# Copyright $year ${2:$fullname} <${3:$email}>
+# Copyright $CURRENT_YEAR ${2:$fullname} <${3:$email}>
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
@@ -105,7 +105,7 @@ $0
 ]]></text>
     <text languages="c-sharp;rust;"><![CDATA[// ${1:$filename}
 //
-// Copyright $year ${2:$fullname} <${3:$email}>
+// Copyright $CURRENT_YEAR ${2:$fullname} <${3:$email}>
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
@@ -126,7 +126,7 @@ $0
   <snippet _name="gpl" trigger="gpl" _description="">
     <text languages="c;chdr;cpp;css;js;vala;java;"><![CDATA[/* ${1:$filename}
  *
- * Copyright $year ${2:$fullname} <${3:$email}>
+ * Copyright $CURRENT_YEAR ${2:$fullname} <${3:$email}>
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -147,7 +147,7 @@ $0
 ]]></text>
     <text languages="python;python3;"><![CDATA[# ${1:$filename}
 #
-# Copyright $year ${2:$fullname} <${3:$email}>
+# Copyright $CURRENT_YEAR ${2:$fullname} <${3:$email}>
 #
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -167,7 +167,7 @@ $0
 ]]></text>
     <text languages="c-sharp;rust;"><![CDATA[// ${1:$filename}
 //
-// Copyright $year ${2:$fullname} <${3:$email}>
+// Copyright $CURRENT_YEAR ${2:$fullname} <${3:$email}>
 //
 // This program is free software: you can redistribute it and/or modify
 // it under the terms of the GNU General Public License as published by
@@ -189,7 +189,7 @@ $0
   <snippet _name="lgpl" trigger="lgpl" _description="">
     <text languages="c;chdr;cpp;css;js;vala;java;"><![CDATA[/* ${1:$filename}
  *
- * Copyright $year ${2:$fullname} <${3:$email}>
+ * Copyright $CURRENT_YEAR ${2:$fullname} <${3:$email}>
  *
  * This file is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as
@@ -210,7 +210,7 @@ $0
 ]]></text>
     <text languages="python;python3;"><![CDATA[# ${1:$filename}
 #
-# Copyright $year ${2:$fullname} <${3:$email}>
+# Copyright $CURRENT_YEAR ${2:$fullname} <${3:$email}>
 #
 # This file is free software; you can redistribute it and/or modify it
 # under the terms of the GNU Lesser General Public License as
@@ -230,7 +230,7 @@ $0
 ]]></text>
     <text languages="c-sharp;rust;"><![CDATA[// ${1:$filename}
 //
-// Copyright $year ${2:$fullname} <${3:$email}>
+// Copyright $CURRENT_YEAR ${2:$fullname} <${3:$email}>
 //
 // This file is free software; you can redistribute it and/or modify it
 // under the terms of the GNU Lesser General Public License as
@@ -252,7 +252,7 @@ $0
   <snippet _name="mit" trigger="mit" _description="">
     <text languages="c;chdr;cpp;css;js;vala;java;"><![CDATA[/* ${1:$filename}
  *
- * Copyright $year ${2:$fullname} <${3:$email}>
+ * Copyright $CURRENT_YEAR ${2:$fullname} <${3:$email}>
  *
  * Permission is hereby granted, free of charge, to any person obtaining a copy
  * of this software and associated documentation files (the "Software"), to
@@ -278,7 +278,7 @@ $0
 ]]></text>
     <text languages="c-sharp;rust;"><![CDATA[// ${1:$filename}
 //
-// Copyright $year ${2:$fullname} <${3:$email}>
+// Copyright $CURRENT_YEAR ${2:$fullname} <${3:$email}>
 //
 // Permission is hereby granted, free of charge, to any person obtaining a copy
 // of this software and associated documentation files (the "Software"), to
@@ -303,7 +303,7 @@ $0
 ]]></text>
     <text languages="python;python3;"><![CDATA[# ${1:$filename}
 #
-# Copyright $year ${2:$fullname} <${3:$email}>
+# Copyright $CURRENT_YEAR ${2:$fullname} <${3:$email}>
 #
 # Permission is hereby granted, free of charge, to any person obtaining a copy
 # of this software and associated documentation files (the "Software"), to
@@ -330,7 +330,7 @@ $0
   <snippet _name="mitapache" trigger="mitapache" _description="MIT OR Apache">
     <text languages="c;chdr;cpp;css;js;vala;java;"><![CDATA[/* ${1:$filename}
  *
- * Copyright $year ${2:$fullname} <${3:$email}>
+ * Copyright $CURRENT_YEAR ${2:$fullname} <${3:$email}>
  *
  * Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
  * https://www.apache.org/licenses/LICENSE-2.0> or the MIT License
@@ -344,7 +344,7 @@ $0
 ]]></text>
     <text languages="python;python3;"><![CDATA[# ${1:$filename}
 #
-# Copyright $year ${2:$fullname} <${3:$email}>
+# Copyright $CURRENT_YEAR ${2:$fullname} <${3:$email}>
 #
 # Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
 # https://www.apache.org/licenses/LICENSE-2.0> or the MIT License
diff --git a/src/plugins/snippets/snippets/rpmspec.snippets b/src/plugins/snippets/snippets/rpmspec.snippets
index 613b7fb92..c357ea2c2 100644
--- a/src/plugins/snippets/snippets/rpmspec.snippets
+++ b/src/plugins/snippets/snippets/rpmspec.snippets
@@ -31,7 +31,7 @@ make %{?_smp_mflags}
 ${12}
 
 %changelog
-* $shortweekday $shortmonth $day $year ${13:$fullname} <${14:$email}> - $2-$3
+* $shortweekday $shortmonth $day $CURRENT_YEAR ${13:$fullname} <${14:$email}> - $2-$3
 - Initial package$0
 ]]></text>
   </snippet>
@@ -85,7 +85,7 @@ ${13}
 ${17}
 
 %changelog
-* $shortweekday $shortmonth $day $year ${18:$fullname} <${19:$email}> - $2-$3
+* $shortweekday $shortmonth $day $CURRENT_YEAR ${18:$fullname} <${19:$email}> - $2-$3
 - Initial package$0
 ]]></text>
   </snippet>
@@ -123,7 +123,7 @@ CFLAGS=%{optflags} %{__python} setup.py build
 ${15}
 
 %changelog
-* $shortweekday $shortmonth $day $year ${16:$fullname} <${17:$email}> - $2-$3
+* $shortweekday $shortmonth $day $CURRENT_YEAR ${16:$fullname} <${17:$email}> - $2-$3
 - Initial package$0
 ]]></text>
   </snippet>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]