Remove tarball creation

It just didn't work out.
This commit is contained in:
Jacob 2023-09-16 19:03:40 +02:00
parent fcb51324b5
commit 5cf16efe84
3 changed files with 0 additions and 26 deletions

View File

@ -21,11 +21,7 @@ else
printf "Warning: repo-add not found, will only copy viewer.\n" >> /dev/stderr
fi
[ "$mktar" = "true" ] && touch packages/.need_mktar
if [ "$1" = "publish" ]; then
[ ! -x "$(command -v rsync)" ] && printf "rsync not found.\n" > /dev/stderr && exit 1
rsync -avPz packages/ ${SERVER_USER}@${SERVER_IP}:${SERVER_LOCATION}/packages/
fi
rm -f packages/.need_mktar

View File

@ -133,14 +133,6 @@ function main() {
}
print "\t\t\t</table>\n";
} else if ($request == "archive") {
exec("./viewer/archive.sh", $output);
if (file_exists("packages.tar.gz")) {
header("Location: packages.tar.gz");
}
exit();
} else if ($request == "view" && $query == '') {
printHead($self, "speedie-aur", "speedie-aur", "My unofficial Arch Linux repository containing many useful packages");
@ -158,9 +150,6 @@ function main() {
print "\t\t\t<p>You can search for packages using the input box in the navbar. Then you can select a package to view details about it. You can press 'Home' in the navbar to go back to this page, or 'All' to display all available packages.</p>\n";
print "\t\t<h2>Directory listing</h2>\n";
print "\t\t\t<p>See <a href=\"lister.php\">this page</a> for more information.</p>\n";
print "\t\t<h2>Download</h2>\n";
print "\t\t\t<p>If you wish, you can download the full packages/ directory containing all packages, the database and the PHP itself. This may be useful if you want to have a local repository that won't get updated, or you want to contribute back.</p>\n";
print "\t\t\t<p>A tar.gz archive can be found <a href=\"$self?action=archive\">here</a>.</p>\n";
} else if ($request == "view" && $query != '') {
$packageCount = 0;
$packageVersions = array();

View File

@ -1,11 +0,0 @@
#!/usr/bin/env bash
dir="$(pwd)"
if [ -f "$dir/.need_mktar" ] || [ ! -f "$dir/packages.tar.gz" ]; then
rm -f "$dir/.need_mktar"
rm -f "$dir/packages.tar.gz"
mkdir -p packages/ ; cp "$dir/"* packages/ ; cp -r "$dir/viewer" "$dir/lister" packages/
tar -cf "$dir/packages.tar" packages/ && gzip "$dir/packages.tar"
rm -rf packages/
fi