8 Commits

Author SHA1 Message Date
Lukas Fleischer
978d24a9d2 Update copyright ranges
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
2016-01-30 11:21:53 +01:00
Lukas Fleischer
9ef427693b Update copyright ranges
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2015-02-07 11:42:20 +01:00
Lukas Fleischer
a7944d335e Update copyright ranges
Add 2013 to the copyright range for all source and documentation files.

Reported-by: Frederic Culot <frederic@culot.org>
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2013-02-04 20:10:14 +01:00
Lukas Fleischer
844d35e851 calcurse-upgrade: Create a backup before upgrading
Make sure the user doesn't end up in a configuration file being totally
broken if the upgrade script fails unexpectedly. The backup file is
removed if the conversion completed successfully.

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2012-06-10 11:47:18 +02:00
Lukas Fleischer
fa1f0a5c44 calcurse-upgrade: Display error if temp file exists
Instead of bailing out without any hint, show an error message if the
temporary file we use in calcurse-upgrade already exists.

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2012-06-01 16:07:48 +02:00
Lukas Fleischer
f44b307e22 calcurse-upgrade: Change location of temporary file
Instead of creating the temporary file in a central location, place it
in the same directory as the configuration file. Pros:

* No need to rely on the "$TMPDIR" environment variable.

* Multiple users can upgrade their configuration files at the same time,
  even if "$!" isn't set properly.

* One user can upgrade several configuration files (in different
  directories or with different file names) at once.

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2012-06-01 16:07:48 +02:00
Lukas Fleischer
1022781821 calcurse-upgrade: Add "-h" and "-v" options
Add "-h"/"--help" options to print a usage message and "-v"/"--version"
to print the current version.

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2012-06-01 16:07:48 +02:00
Lukas Fleischer
9be3a9c1f0 scripts/: Add support for placeholders
Allow for specifying placeholders in shell scripts that are replaced
during build time. Predefine a "@PACKAGE_VERSION@" placeholder that is
replaced with the current version number. Also, rename all shell scripts
to ".sh.in".

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
2012-06-01 16:07:46 +02:00