mirror of
https://github.com/tstellar/bygfoot.git
synced 2025-03-18 03:30:08 +01:00
Porting.
This commit is contained in:
parent
d525d297a9
commit
c24a0b841e
22
src/file.c
22
src/file.c
@ -529,10 +529,15 @@ file_compress_files(const gchar *destfile, const gchar *prefix)
|
||||
chdir(dirname);
|
||||
|
||||
if (os_is_unix)
|
||||
sprintf(buf, "%s %s", const_str("string_fs_compress_command"), zipbasename);
|
||||
sprintf(buf, "%s %s %s",
|
||||
const_str("string_fs_compress_command"),
|
||||
const_str("string_fs_compress_switches"),
|
||||
zipbasename);
|
||||
else
|
||||
sprintf(buf, "%s%s%s %s", pwd, G_DIR_SEPARATOR_S,
|
||||
const_str("string_fs_compress_command"), zipbasename);
|
||||
sprintf(buf, "\"%s%s%s\" %s %s", pwd, G_DIR_SEPARATOR_S,
|
||||
const_str("string_fs_compress_command"),
|
||||
const_str("string_fs_compress_switches"),
|
||||
zipbasename);
|
||||
|
||||
for(i=0;i<files->len;i++)
|
||||
{
|
||||
@ -567,10 +572,15 @@ file_decompress(const gchar *filename)
|
||||
chdir(dirname);
|
||||
|
||||
if (os_is_unix)
|
||||
sprintf(buf, "%s %s", const_str("string_fs_uncompress_command"), basename);
|
||||
sprintf(buf, "%s %s %s",
|
||||
const_str("string_fs_uncompress_command"),
|
||||
const_str("string_fs_uncompress_switches"),
|
||||
basename);
|
||||
else
|
||||
sprintf(buf, "%s%s%s %s", pwd, G_DIR_SEPARATOR_S,
|
||||
const_str("string_fs_uncompress_command"), basename);
|
||||
sprintf(buf, "\"%s%s%s\" %s %s", pwd, G_DIR_SEPARATOR_S,
|
||||
const_str("string_fs_uncompress_command"),
|
||||
const_str("string_fs_uncompress_switches"),
|
||||
basename);
|
||||
|
||||
file_my_system(buf);
|
||||
|
||||
|
@ -8,14 +8,18 @@
|
||||
#### so we write 5000 if we'd like to have 0.5
|
||||
|
||||
# commands for unix filesystem interaction
|
||||
string_fs_compress_command_unix zip -q
|
||||
string_fs_uncompress_command_unix unzip -qq -o
|
||||
string_fs_compress_command_unix zip
|
||||
string_fs_compress_switches_unix -q
|
||||
string_fs_uncompress_command_unix unzip
|
||||
string_fs_uncompress_switches_unix -qq -o
|
||||
string_fs_copy_file_command_unix cp
|
||||
string_fs_remove_file_command_unix rm -rf
|
||||
string_fs_remove_file_command_unix rm
|
||||
|
||||
# commands for win32 filesystem interaction
|
||||
string_fs_compress_command_win32 7za a -tzip
|
||||
string_fs_uncompress_command_win32 7za e -y
|
||||
string_fs_compress_command_win32 7za
|
||||
string_fs_compress_switches_win32 a -tzip
|
||||
string_fs_uncompress_command_win32 7za
|
||||
string_fs_uncompress_switches_win32 e -y
|
||||
string_fs_copy_file_command_win32 copy
|
||||
string_fs_remove_file_command_win32 erase
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user