updated some references to old name for doc (was docs).
[feisty_meow.git] / scripts / archival / snarf_feisty_meow.pl
1 #!/usr/bin/perl
2
3 ##############
4 #  Name   : snarf_feisty_meow
5 #  Author : Chris Koeritz
6 #  Rights : Copyright (C) 1996-$now by Author
7 #  Purpose:
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.
10 ##############
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".   #
16 ##############
17
18 require "importenv.pl";
19 require "shared_snarfer.pl";
20
21 &initialize_snarfer;  # let the snarfer hook us in.
22
23 # get the number attachment and increment it for the next use.
24 local($number) = &retrieve_number("aa_backup");
25
26 # variables used throughout here.
27 local($snarf_file_base) = &snarf_prefix("feisty_meow");
28 local($snarf_file) = &snarf_name($snarf_file_base, $number);
29
30 # store the archive number in the file for retrieval on the other side.
31 &backup_number("aa_backup", $snarf_file_base, $number);
32
33 # the top directory where everything we're grabbing lives.
34 local($root) = &canonicalize("$HOME/feisty_meow");
35
36 # grab the top level stuff.
37 &backup_files($snarf_file_base, $number, $root, ".", ("*.txt", "make*", ".gitignore"));
38
39 # get the documentation directory.
40 &backup_hierarchy($snarf_file_base, $number, "$root", "doc");
41 ###
42 #oldversion
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");
46 ###
47
48 # get our databases that we ship with the sources.
49 &backup_hierarchy($snarf_file_base, $number, $root, "database");
50
51 # get all the yeti scripts hierarchy in there.
52 &backup_hierarchy($snarf_file_base, $number, $root, "scripts");
53
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");
58
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");
62
63 # now rename the file so only the unpacker can access it.
64 &rename_archive($snarf_file);
65
66 exit 0;
67