X-Git-Url: https://jasonwoof.com/gitweb/?p=wfpl.git;a=blobdiff_plain;f=tar.php;h=bba514eeba611143c36da4257429218e2dbf17e8;hp=e7beedbb27de338a2c6c1a0ac23335ec8bc6a7a9;hb=fe9a487e1b5ed0700481aee4609055dc6c47505d;hpb=23dfbcc20fc6d20fb5be211e5af50cdcb8565c8e diff --git a/tar.php b/tar.php index e7beedb..bba514e 100644 --- a/tar.php +++ b/tar.php @@ -82,14 +82,14 @@ function make_tar($dirname, $files, $pre_archive_func = false, $tmpdir = false) system('/bin/rm -rf ' . escapeshellarg($tmpdir)); } -# like make_tar above, except it includes a copy of code/wfpl +# like make_tar above, except it includes a copy of wfpl function make_wfpl_tar($dirname, $files) { make_tar($dirname, $files, 'add_wfpl_dir'); } function add_wfpl_dir($dir) { mkdir("$dir/code"); - system("rsync -plr --exclude=\".git\" --exclude=\"*.swp\" 'code/wfpl/' '$dir/code/wfpl/'", $return_code); + system("rsync -plr --exclude=\".git\" --exclude=\"*.swp\" 'inc/wfpl/' '$dir/inc/wfpl/'", $return_code); if($return_code != 0) { die("ERROR: while trying to copy wfpl into archive: rsync returned $return_code"); }