4 # Name : snarf_feisty_meow
5 # Author : Chris Koeritz
6 # Rights : Copyright (C) 1996-$now by Author
8 # Gathers together the useful shell files and standard databases.
9 # Backs up the full set of hoople 2.0 source code, plus some extra stuff.
11 # This program is free software; you can redistribute it and/or modify it #
12 # under the terms of the GNU General Public License as published by the Free #
13 # Software Foundation; either version 2 of the License or (at your option) #
14 # any later version. See: "http://www.gruntose.com/Info/GNU/GPL.html" for a #
15 # version of the License. Please send any updates to "fred@gruntose.com". #
18 require "importenv.pl";
19 require "shared_snarfer.pl";
21 &initialize_snarfer; # let the snarfer hook us in.
23 # get the number attachment and increment it for the next use.
24 local($number) = &retrieve_number("aa_backup");
26 # variables used throughout here.
27 local($snarf_file_base) = &snarf_prefix("feisty_meow");
28 local($snarf_file) = &snarf_name($snarf_file_base, $number);
30 # store the archive number in the file for retrieval on the other side.
31 &backup_number("aa_backup", $snarf_file_base, $number);
33 # the top directory where everything we're grabbing lives.
34 local($root) = &canonicalize("$HOME/feisty_meow");
36 # grab the top level stuff.
37 &backup_files($snarf_file_base, $number, $root, ".", ("*.txt", "make*", ".gitignore"));
39 # get the documentation directory.
40 &backup_hierarchy($snarf_file_base, $number, "$root", "doc");
43 #&snarfer($snarf_file_base, $number, $root, "doc", ("-maxdepth", "1"));
44 # get an extra folder we like.
45 #&backup_hierarchy($snarf_file_base, $number, "$root", "doc/text_examples");
48 # get our databases that we ship with the sources.
49 &backup_hierarchy($snarf_file_base, $number, $root, "database");
51 # get all the yeti scripts hierarchy in there.
52 &backup_hierarchy($snarf_file_base, $number, $root, "scripts");
54 # get all C++ code project hierarchies.
55 &backup_hierarchy($snarf_file_base, $number, "$root", "nucleus");
56 &backup_hierarchy($snarf_file_base, $number, "$root", "octopi");
57 &backup_hierarchy($snarf_file_base, $number, "$root", "graphiq");
59 # grab the production assets.
60 &backup_files($snarf_file_base, $number, $root, "production", ("*.ini", "make*"));
61 &backup_hierarchy($snarf_file_base, $number, "$root", "production/setup_src");
63 # now rename the file so only the unpacker can access it.
64 &rename_archive($snarf_file);