-
Notifications
You must be signed in to change notification settings - Fork 7
ExtChangelogSh
The main purpose of extChangelog.sh is to retrieve the upload comments for a given TYPO3 extension from the cached extension information in the database.
$ ./extChangelog.sh --help
Usage: ./extChangelog.sh [OPTIONS] [--extension=]EXTKEY
Core:
--help Display this help and exit.
--verbose Display more detailed messages.
--quiet Do not display anything.
--force Perform actions that would otherwise abort the script.
--update Tries to update the script to the latest version.
--update-check Checks if a newer version of the script is available.
--export-config Prints the default configuration of this script.
--extract-config Extracts configuration parameters from TYPO3.
--base=PATH The name of the base path where TYPO3 is
installed. If no base is supplied, "typo3" is used.
Options:
--extension=EXTKEY The extension key of the extension for which to retrieve
the changelog.
--first=VERSION The first version that should be listed.
--last=VERSION The last version that should be listed.
--skip-first Skip the first found version.
Database:
--hostname=HOST The name of the host where the TYPO3 database is running.
--username=USER The user name to use when connecting to the TYPO3
database.
--password=PASSWORD The password to use when connecting to the TYPO3
database.
--database=DB The name of the database in which TYPO3 is stored.
For general information regarding the configuration of scripts in the typo3scripts suite, please see the article about Configuration.
-
Prints the output seen above, giving an overview of available command line parameters.
-
Enable verbose (more detailed) output.
-
Reduced verbosity (less detailed) output.
-
Perform actions that would otherwise stop execution.
-
Invokes the self-updating mechanism in this script. This will download the latest release version from the official source code repository and replace your current script.
Note: To perform a quick check if a new version is available, run
extChangelog.shwith the--update-checkparameter. If a new version is found online, the following message will be printed to the standard output:NOTE: New version available!In previous versions, this check would be performed every time you run the script.
-
Print the default configuration of the script to the standard output.
This allows for easy generation of a default config file, like so:
$ ./extChangelog.sh --export-config > typo3scripts.conf -
Tries to read the database-related parameters out of the TYPO3 configuration file.
This allows for easy generation of a base config file for other typo3scripts after you have completed your TYPO3 installation.
$ ./extChangelog.sh --extract-config > typo3scripts.confIn case you're using a non-default TYPO3 installation directory, make sure to supply the
--baseparameter before the--extract-configparameter.$ ./extChangelog.sh --base=myt3site --extract-config > typo3scripts.confNote: This functionality is currently not compatible with TYPO3 6.0 configuration file format.
-
By default, it is assumed that the TYPO3 installation is located in a sub-folder relative to the current working directory, named typo3. Use --base if the installation is placed in a differently named sub-folder.
$ ./extChangelog.sh --extension=news --base=myt3site -
Tells
extChangelog.shfor what extension it should retrieve the upload comments. It should be the usual extension key.$ ./extChangelog.sh --extension=news -
The first version from the upload comments that should printed. If
--skip-firstis also supplied, the version after this one will be the first one.$ ./extChangelog.sh --extension=news --first=1.2.0 -
The last version from the upload comments that should printed. All entries after this version are ignored.
$ ./extChangelog.sh --extension=news --last=1.3.0 -
Skips printing the first version. This is mostly intended for the integration with extUpdate.sh.
$ ./extChangelog.sh --extension=news --first=1.2.0 --skip-first -
The name of the host where the database for TYPO3 is running.
-
The user name for the connection to the database for the TYPO3 installation.
-
The password for the connection to the database for the TYPO3 installation.
-
The name of the database for the TYPO3 installation.
/var/www$ cd t3site/
/var/www/t3site$ wget https://raw.github.com/oliversalzburg/typo3scripts/master/extChangelog.sh
/var/www/t3site$ chmod 700 extChangelog.sh
/var/www/t3site$ ./extChangelog.sh --extension=news
Sourcing script configuration from typo3scripts.conf...Done.
Checking dependencies...Succeeded.
Retrieving upload comment history...Done.
1.0.0 (2011-09-09 09:15:08)
Initial release to TER! News based on extbase & fluid
1.1.0 (2011-10-05 10:00:49)
Bugfixes and minor features. Also see http://forge.typo3.org/projects/extension-news/wiki for Howtos!
1.2.0 (2011-11-15 22:47:50)
bugfixes features. please read section "breaking changes" in manual
1.2.3 (2011-11-17 07:44:17)
again a bugfix, again sorry guys
1.3.0 (2011-12-19 10:28:37)
Lots of new features, see http://forge.typo3.org/projects/extension-news/wiki/Release_Notes Merry Christmas!!
1.3.1 (2011-12-19 19:07:52)
Lots of new features, see http://forge.typo3.org/projects/extension-news/wiki/Release_Notes Merry Christmas!!
This example assumes that you previously created a configuration file typo3scripts.conf to share between scripts. Please see the article about Configuration for more information.