Remove space from log file and snapshot directory names

This commit is contained in:
Tony George 2013-12-25 18:59:16 +05:30
parent 1abe24bc30
commit 9aa493b797
5 changed files with 6 additions and 25 deletions

View File

@ -4,8 +4,6 @@ backup=`pwd`
DIR="$( cd "$( dirname "$0" )" && pwd )"
cd "$DIR"
sh update-pot.sh
#check for errors
if [ $? -ne 0 ]; then
cd "$backup"

View File

@ -167,7 +167,7 @@ public class Main : GLib.Object{
try {
DateTime now = new DateTime.now_local();
log_dir = "/var/log/timeshift";
log_file = log_dir + "/" + now.format("%Y-%m-%d %H-%M-%S") + ".log";
log_file = log_dir + "/" + now.format("%Y-%m-%d_%H-%M-%S") + ".log";
var file = File.new_for_path (log_dir);
if (!file.query_exists ()) {
@ -918,7 +918,7 @@ public class Main : GLib.Object{
string msg;
File f;
string time_stamp = dt_created.format("%Y-%m-%d %H-%M-%S");
string time_stamp = dt_created.format("%Y-%m-%d_%H-%M-%S");
DateTime now = new DateTime.now_local();
bool backup_taken = false;

View File

@ -8,7 +8,11 @@ man1dir = $(mandir)/man1
CFLAGS = --std=c99
all:
#timeshift
valac -X -D'GETTEXT_PACKAGE="timeshift"' --Xcc="-lm" --thread "Main.vala" "Utility.vala" "MainWindow.vala" "SettingsWindow.vala" "RestoreWindow.vala" "ExcludeMessageWindow.vala" -o timeshift --pkg glib-2.0 --pkg gio-unix-2.0 --pkg posix --pkg gtk+-3.0 --pkg gee-1.0 --pkg libsoup-2.4 --pkg json-glib-1.0
#timeshift.pot
xgettext --language=C --keyword=_ --copyright-holder='Tony George (teejee2008@gmail.com)' --package-name='timeshift' --package-version='1.2' --msgid-bugs-address='teejee2008@gmail.com' --escape --sort-output -o timeshift.pot src/*.vala
clean:
rm -rf *.o timeshift

View File

@ -1,4 +0,0 @@
msginit -l or_IN -o oriya.po -i timeshift.pot
echo "Finished"
read dummy

View File

@ -1,17 +0,0 @@
#!/bin/bash
backup=`pwd`
DIR="$( cd "$( dirname "$0" )" && pwd )"
cd "$DIR"
echo "Updating translation templates..."
xgettext --language=C --keyword=_ --copyright-holder='Tony George (teejee2008@gmail.com)' --package-name='timeshift' --package-version='1.2' --msgid-bugs-address='teejee2008@gmail.com' --escape --sort-output -o timeshift.pot src/*.vala
#check for errors
if [ $? -ne 0 ]; then
echo "Failed"
exit 1
fi
cd "$backup"