This should really be home to things related to the sorcery script itself, not a repository for other functions. (Andrew 5/29/04)
Original version Copyright 2001 by Kyle Sallee Additions/Corrections Copyright 2002 by the Source Mage Team
Set of functions used by the internal sorcery scripts
Updates the sorcery scripts to their latest version for specified branch.
Menu query to user asking to set the nice value which sorcery should use to run proccesses at.
Menu query to user asking to set the umask value which sorcery should use to run proccesses with.
Displays and/or mails the contents of the file given as the first argument.
Given a filename, will return the actual filename if a similar filename with a different extension exists.
check if the file exists, or one with a similar compression exists
Saves the current libraries associated with the spell, from /lib and /usr/lib into $SOURCE_DIRECTORY/old.libraries/ Also runs ldconfig with the saved libraries.
Saves the current libraries associated with the spell, from /lib and /usr/lib into $SOURCE_DIRECTORY/old.libraries/ Also runs ldconfig with the saved libraries.
Runs default ldconfig to stop using the saved libraries
Recovers from a CTRL-C while casting a spell
section
Returns the section a spell is in.
list of files/dirs/..
list of dirs
=item directories Reads a list from standard input, and prints out each entry that is a directory (and not a symbolic link to a directory).
list of files/dirs/..
list of files
Reads a list from standard input, and prints out each entry that is a file (and not a symbolic link to a file).
list of files/dirs/..
list of symlinks
Reads a list from standard input, and prints out each entry that is a symbolic linke
list of files/dirs/..
filtered list
First argument is a file that contains (basic) grep regular expressions. They are joined with |'s and given to grep -v. Which will filter standard input to remove entries that match. Used to filter out excluded or protected files from install logs.
list of files/dirs/..
filtered list
First argument is a file that contains (basic) grep regular expressions. They are joined with |'s and given to grep Which will filter standard input and remove entries that do not match. Used to filter in config files from install logs.
list of files
list of directories
THIS FUNCTION IS DEPRECIATED, use get_dirnames instead! (remove in 1.16) Given a list of files from standard input, returns the directory of each file.
Sets some environment variables (such as C
history
Display the history of the grimoire given for review
history
Display the history of sorcery for review
Get the new changes from passed changelog argument
Pager with timeouts, cannot be used from a pipe. Invokes a subshell in case there are other background jobs running
Attempt to fix any spells that may be broken.
log files list
Returns a list of the log files for each spell.
Removes stale logs.
Updates the activity log.
Executes the spell's DETAILS file.
unsets variables set by DETAILS.
vars: SPELL VERSION SOURCE_DIRECTORY WEB_SITE UPDATED ENTERED SHORT SOURCE*
Needs to be merged with the libcodex function since they are both
needed to fully unset a DETAILS (afk 4/21/04)
Runs C
Given a list of source files, returns true if each file exists.
filelist
Returns a list of each source file used by a spell. Most have only one, but xfree86 for example splits the sources into three separate source files.
filelist
Returns a list of each source file used by a spell. Most have only one, but xfree86 for example splits the sources into three separate source files.
filelist
Returns a list of files that should not be pruned.
Removes unnecessary files from the source cache and install cache.
Sets DISTCC=[on|off] depending on the value of DISTCC_HOSTS.
Adds /var/lib/sorcery/build to the C
filelist
Returns false if one or more source files for the current spell are missing.
Will set the prefered compression type based on user filled option in dialog menu (either gzip/bzip).
Returns true if the name of the file indicates that it should be a compressed file. In other words, this function returns true if the extension is .gz, .tgz, .bz2, .zip, .rpm, .Z, .xz, .7z or .lzma.
Check that we have all the passed grimoires and use them to override the default selection (all)
PAGER
Sets the most appropriate params for PAGER