debian/0000755000000000000000000000000012230052504007157 5ustar debian/compat0000644000000000000000000000000212230052225010355 0ustar 7 debian/control0000644000000000000000000000212012230052225010555 0ustar Source: drush Section: php Priority: optional Maintainer: Antoine Beaupré Build-Depends: debhelper (>= 7.0.50~), php5-cli (>= 5.2) Standards-Version: 3.9.4 Homepage: https://github.com/drush-ops/drush Vcs-git: git://git.debian.org/git/collab-maint/drush.git Vcs-browser: http://git.debian.org/git/collab-maint/drush.git Package: drush Architecture: all Depends: ${shlibs:Depends}, ${misc:Depends}, php5-cli (>= 5.2), php-console-table Conflicts: drush-make Replaces: drush-make Recommends: wget | curl, php5-mysql | php5-pgsql Suggests: git, mysql-client, drupal7 Description: command line shell and Unix scripting interface for Drupal drush is a command line shell and Unix scripting interface for Drupal, a veritable Swiss Army knife designed to make life easier for Drupal power users who spend a lot of time hacking away at the command prompt. . Drush core ships with lots of useful commands for interacting with code like modules/themes/profiles. Similarly, it runs update.php, executes sql queries and DB migrations, and misc utilities like run cron or clear cache. debian/README.source0000644000000000000000000000042112230052225011333 0ustar drush for Debian ---------------- To build this package, follow those steps: uscan --download-current git-buildpackage We use the "underlay" mechanism of git-buildpackage to build this. -- Antoine Beaupré , Wed, 12 Sep 2012 18:31:32 -0400 debian/changelog0000644000000000000000000002157312230052225011041 0ustar drush (5.10.0-2) unstable; urgency=low * properly replace drush-make, eases upgrades from 4.x -- Antoine Beaupré Thu, 17 Oct 2013 17:20:08 -0400 drush (5.10.0-1) unstable; urgency=low * New upstream release. * Change URLs and watch file as upstream swited to github. * Update to policy 3.9.4, no change. * Fix drupal dependency (Closes: #712822) -- Antoine Beaupré Thu, 10 Oct 2013 15:17:39 +0200 drush (5.9-1) unstable; urgency=low * New upstream release. * Ship bash completion (Closes: #705870) -- Antoine Beaupré Fri, 14 Jun 2013 15:43:54 -0400 drush (5.8-1) unstable; urgency=low * New upstream release * Suggest: drupal (Closes: #698363) * Move to /usr/share/php/drush, according to the PEAR policy this is not the recommended way but the current way is creating confusion with upstream, and I can't figure out how to update the package.xml file properly, or register the installed files. -- Antoine Beaupré Thu, 24 Jan 2013 19:56:58 -0500 drush (5.7-1) unstable; urgency=low * New upstream release * Add README.source so that I remember how to build this * Fix watch file to use the lighter project page instead of full drupal.org directory listing -- Antoine Beaupré Wed, 12 Sep 2012 18:31:53 -0400 drush (5.4-1) unstable; urgency=low * New upstream release * Update to standards 3.9.3, no change * Fix Vcs-* urls -- Antoine Beaupré Fri, 15 Jun 2012 17:27:17 -0300 drush (5.3-1) unstable; urgency=low [ Jamon Camisso ] * added /usr/share/drush/lib directory [ Antoine Beaupré ] * update to Drush 5.3, no change * release to Debian unstable -- Antoine Beaupré Thu, 31 May 2012 16:54:35 -0400 drush (5.0~dev-1) experimental UNRELEASED; urgency=low * Test snapshot release of the Drush 5 branch. * Build from the debian-master branch and directly from the "master" branch as upstream. -- Antoine Beaupré Mon, 27 Jun 2011 15:48:09 -0400 drush (4.5-6) unstable; urgency=low [Andrew Starr-Bochicchio] * Also build-depend on php-console-table (Closes: #648413). -- Antoine Beaupré Thu, 22 Dec 2011 20:32:16 -0500 drush (4.5-5) unstable; urgency=low * Depend on the newly uploaded php-console-table -- Antoine Beaupré Sat, 03 Dec 2011 16:44:05 -0500 drush (4.5-4) unstable; urgency=low * Do not require using the upstream branch in git-buildpackage * Revert 4.5-2 approach of fetching table.inc during build, as buildd do not have network access, and Ubuntu rebuilds even Arch: all packages (Closes: #648413). -- Antoine Beaupré Tue, 15 Nov 2011 11:06:01 -0500 drush (4.5-3) unstable; urgency=low * fix watchfile * change my email address * remove DM field as I am now a DD -- Antoine Beaupré Sun, 06 Nov 2011 22:20:28 -0500 drush (4.5-2) unstable; urgency=low * fetch the table.inc file during the build instead of keeping a copy in our source repo * mark this package as a "single-debian-patch" to silence a lintian warnings - our changes are now tracked in git (Closes: #643099). * recommend wget *or* curl, which are both working with drush -- Antoine Beaupré Fri, 30 Sep 2011 13:13:54 -0400 drush (4.5-1) unstable; urgency=low * new upstream release: http://drupal.org/node/1247086 * fix watch file to follow new naming convention * fix a bunch of lintian tips * switch to source format 3.0 (quilt) -- Antoine Beaupré Sun, 21 Aug 2011 15:14:15 +0100 drush (4.4-2) unstable; urgency=low * ship properly all the examples * ship properly the docs/ directory for drush topic to work * update to standards version 3.9.2, no change * do not suggest subversion/cvs but git (Closes: #628794). -- Antoine Beaupré Tue, 28 Jun 2011 14:15:06 -0400 drush (4.4-1) unstable; urgency=low * New upstream minor release to fix .info file. -- Antoine Beaupré Mon, 14 Mar 2011 19:22:40 -0400 drush (4.3-1) unstable; urgency=low * New upstream release, see http://drupal.org/node/1091572 * Changed git repos to be the upstream repos, which have accepted that the Debian branch live upstream. Upstream (msonnabaum) has also manifested interest in maintaining the Debian/Ubuntu packages. -- Antoine Beaupré Mon, 14 Mar 2011 17:11:53 -0400 drush (4.2-1) unstable; urgency=low * New upstream release * Updated manpage (Closes: #595908) * Forgot to mention that the upstream release fixed the vget bug (Closes: #595772) -- Antoine Beaupré Thu, 20 Jan 2011 22:34:57 -0500 drush (4.1-1) unstable; urgency=low * New upstream release (Closes: #609362) This branch (4.x) is likely to live only in sid considering upstream is already considering a 5.x release. In general, the release cycle of Debian and Drush are incompatible, the latter being roughly every 6 months. I will try to keep sid (and therefore testing) up to date with the upstream stable and people will be free to use 3.3 (in squeeze or lenny-backports) or whatever the latest stable upstream is (in sid or testing). * standards upgrade to 3.9.1 - no change * update table.inc to follow upstream -- Antoine Beaupré Thu, 20 Jan 2011 21:06:50 -0500 drush (3.3-1) unstable; urgency=low * New upstream version (Closes: #594020) This is the last "unclean" version of Drush 3. Further version will contain only security upgrades and critical bugfixes that can be targeted at Debian stable. As the maintainer of the Drush stable branch, I can commit to such a policy. -- Antoine Beaupré Fri, 27 Aug 2010 20:43:25 +0200 drush (3.1-2) unstable; urgency=low * fix version control urls * fix the drush.info issue (Closes: #588639) -- Antoine Beaupré Sun, 22 Aug 2010 19:20:02 +0200 drush (3.1-1) unstable; urgency=low * new upstream release, see http://drupal.org/node/833938 * last upload mistakenly included a .diff.gz against head, this upload should correct that. -- Antoine Beaupré Wed, 23 Jun 2010 20:13:58 -0400 drush (3.0-1) unstable; urgency=low * new upstream release, see http://drupal.org/node/779448 (Closes: #575880). * removed all local patches integrated upstream * update to standards 3.8.4, no change required -- Antoine Beaupré Wed, 23 Jun 2010 19:53:13 -0400 drush (2.0-6) unstable; urgency=low * put this back to GPL2+ after discussions with Drupal.org people * update to standards 3.8.3: no change required * fix subversion dependencies, push php depends up to Recommends -- Antoine Beaupré Fri, 11 Sep 2009 22:47:11 +0200 drush (2.0-5) unstable; urgency=low * fix copyright notice to claim GPL-2 (and not GPL-2+) * update to standards 3.8.2: put in php section * backport a few fixes that have been committed to CVS after the 2.0 release - #500324 dman - fails to download install profile in proper location. Incorrect path. - #493456 by guidot. three tiny errors in drush help dl Examples ... Also a text improvement. - #503328 - fix drush cron due to drush shutdown exiting. register exit helper in drush_shutdown. Thanks david goode - #533496 ZoFreX - Drush does not like being invoked from a path that contains spaces -- Antoine Beaupré Wed, 29 Jul 2009 17:52:18 -0400 drush (2.0-5~koumbit50+1) stable; urgency=low * backport to lenny -- Antoine Beaupré Wed, 29 Jul 2009 17:48:18 -0400 drush (2.0-4) unstable; urgency=low * fix paths in VCS fields * add DM-Upload-Allowed field since I am a Debian Maintainer * add VCS-* fields to debian/control file -- Antoine Beaupré Tue, 14 Jul 2009 21:21:00 -0400 drush (2.0-4~koumbit50+1) stable; urgency=low * backport to lenny * add VCS-* fields to debian/control file -- Antoine Beaupré Wed, 17 Jun 2009 21:07:18 -0400 drush (2.0-3) unstable; urgency=low * use dh_prep instead of dh_clean to silence warnings on sid. this will now fail to build on lenny. * cleanup comments in watch and rules files * update to standards 3.8.1 -- Antoine Beaupré Sun, 14 Jun 2009 17:10:59 -0400 drush (2.0-2) unstable; urgency=medium * don't use the bash wrapper because it breaks in cron -- Antoine Beaupré Sun, 14 Jun 2009 16:47:43 -0400 drush (2.0-1) unstable; urgency=low * Initial release (Closes: #532723) * Write a manpage * Includes the table.inc file from PEAR's Console_Table -- Antoine Beaupré Thu, 11 Jun 2009 21:56:06 -0400 debian/gbp.conf0000644000000000000000000000011712230052225010575 0ustar [git-buildpackage] overlay = true tarball-dir = .. export-dir = ../build-area/ debian/drush.dirs0000644000000000000000000000012412230052225011164 0ustar usr/bin usr/share/php/drush etc/drush usr/share/php/drush/lib etc/bash_completion.d debian/drush.10000644000000000000000000001160112230052225010365 0ustar .\" Hey, EMACS: -*- nroff -*- '\" t -*- coding: UTF-8 -*- .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) .TH DRUSH 1 "January 11, 2011" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: .\" .nh disable hyphenation .\" .hy enable hyphenation .\" .ad l left justify .\" .ad b justify to both left and right margins .\" .nf disable filling .\" .fi enable filling .\" .br insert line break .\" .sp insert n+1 empty lines .\" for manpage-specific macros, see man(7) .SH NAME drush \- shell scripting interface for Drupal .SH SYNOPSIS .B drush .RI [ options ] " command" ... .SH DESCRIPTION .PP \fBdrush\fP is a veritable Swiss Army knife designed to make life easier for those of us who spend some of our working hours hacking away at the command prompt. .PP \fBDrush\fP core ships with lots of useful commands for interacting with code like modules/themes/profiles. Similarly, it runs update.php, executes sql queries and DB migrations, and misc utilities like run cron or clear cache. .SH OPTIONS .TP .BI \-r\ path ,\ \-\-root= path Drupal root directory to use (default: current directory) .TP .BI \-l\ uri ,\ \-\-uri= uri URI of the drupal site to use (only needed in multisite environments) .TP .BI \-v ,\ \-\-verbose Display extra information about the command. .TP .B \-q, \-\-quiet Hide all output .TP .B \-d, \-\-debug Display even more information, including internal messages. .TP .B \-y, \-\-yes Assume 'yes' as answer to all prompts .TP .B \-s, \-\-simulate Simulate all relevant actions (don't actually change the system) .TP .B \-p, \-\-pipe Emit a compact representation of the command for scripting. .TP .B \-h, \-\-help A detailed help system, use \fBdrush help help\fP for complete help. .TP .B \-\-version Show drush version. .PP If you get tired of typing options all the time, you can add them to your drush.php alias or create a drushrc.php file. These provide additional options for your drush call. They provide great flexibility for a multi-site installation, for example. See example.drushrc.php. .SH COMMANDS Drush is all based around "commands" that are usually defined in various modules. .TP .B help Print the help message. Use \-\-filter to limit command list to one command file (e.g. \-\-filter=pm). .TP .B cache-clear (cc) Clear a specific cache, or all drupal caches. .TP .B core-cli (cli) Enter a new shell optimized for Drush use. .TP .B core-cron (cron) Run all cron hooks. .TP .B core-status (st) Provides a birds-eye view of the current Drupal installation, if any. .TP .B php-eval (eval) Evaluate arbitrary php code after bootstrapping Drupal. .TP .B updatedb (updb) Apply any database updates required (as with running update.php). .TP .B variable-get (vget) Get a list of some or all site variables and values .TP .B variable-set (vset) Set a variable. .TP .B watchdog show Shows recent watchdog log messages. Optionally filter for a specific type. .TP .B pm-enable (en) Enable one or more extensions (modules or themes). .TP .B pm-disable (dis) Disable one or more extensions (modules or themes). .TP .B pm-download (dl) Download projects from drupal.org or other sources. .TP .B pm-uninstall Uninstall one or more modules. .TP .B pm-updatecode (upc) Update Drupal core and contrib projects to latest recommended releases. .TP .B pm-update (up) Update Drupal core and contrib projects and apply any pending database updates (Same as pm-updatecode + updatedb). .TP .B sql-cli (sqlc) Open a SQL command-line interface using Drupal's credentials. .TP .B sql-connect A string for connecting to the DB. .TP .B sql-dump Exports the Drupal DB as SQL using mysqldump. .PP This manual only lists a few of the most frequently used builtin commands shipped with the Drush core, since other Drupal modules and third-party "command files" may extend this list significantly. The canonical source of information for the available commands and their usage is the online help system. .PP More information on each command is also available through \fBdrush help \fP. Most commands have shortcuts indicated in parenthesis. .SH FILES .IR /etc/drush/drushrc.php .br .I /usr/share/doc/drush/examples/example.drushrc.php .SH SEE ALSO .BR cvs (1), .BR svn (1), .BR wget (1). .SH AUTHOR Drush was originally developed by Arto for Drupal 4.7 (this alpha code can still be found in the DRUPAL-4-7 branch). In May 2007, it was partly rewritten and redesigned for Drupal 5 by frando. Since 2008, the module has been maintained by Moshe Weitzman, Owen Barton and Adrian Rossouw. .PP This manual page was written by Antoine Beaupré in June 2009 for the Debian project (but may be used by others). debian/drush.docs0000644000000000000000000000002012230052225011146 0ustar README.md docs/ debian/rules0000755000000000000000000000372412230052225010245 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: dh $@ override_dh_install: cp -r "$(CURDIR)/commands" "$(CURDIR)/includes" "$(CURDIR)/drush.php" "$(CURDIR)/drush.info" "$(CURDIR)/debian/drush/usr/share/php/drush/" chmod a+x "$(CURDIR)/debian/drush/usr/share/php/drush/drush.php" ln -s /usr/share/php/drush/drush.php "$(CURDIR)/debian/drush/usr/bin/drush" cp "$(CURDIR)/drush.complete.sh" "$(CURDIR)/debian/drush/etc/bash_completion.d/drush" override_dh_compress: dh_compress -XREADME.txt -Xexamples/ -Xdocs/ release: git-buildpackage --release snapshot: git-buildpackage --snapshot DOMAIN?=$(shell hostname -f) KEY?="-kjenkins@$(DOMAIN)" # this builds a debian package based on what the current branches are # this usually tests the latest release jenkins-build-official: git-buildpackage -b --git-upstream-branch=origin/upstream --git-debian-branch=origin/debian --git-ignore-branch ${KEY} # the upstream version: strip the 6.x and turn the appendix into # +N.foo where N is the number of commits since last tag and foo is # the hash upstream_version=$(shell git describe --tags origin/7.x-4.x | sed 's/6.x-//;s/-\([0-9]*\)-\([^-]*\)$$/+\1.\2/') # the debian version, strip the debian/ part of the tag and the # upstream version number, keep just the debian part, replacing as # above for the N.foo part debian_version=$(shell git describe --tags origin/debian | sed "s/debian\///;s/-\([0-9]*\)-\([^-]*\)$$/+\1.\2/;s/^.*-//" ) # this builds a debian package but first updates the branches to follow the latest 1.x branch # this assumes you are on a "debian" branch (of course) jenkins-build-auto: git merge origin/7.x-4.x dch -D unstable -v ${upstream_version}-${debian_version} "automatic jenkins build ${BUILD_TAG}" git commit -m"dummy commit for jenkins ${BUILD_TAG} autobuild" debian/changelog git-buildpackage -b --git-upstream-branch=origin/7.x-4.x ${KEY} show-version: @echo ${upstream_version}-${debian_version} debian/watch0000644000000000000000000000032712230052225010212 0ustar # See uscan(1) for format # Compulsory line, this is a version 3 file version=3 opts=uversionmangle=s/(\d)[\.\+\-_]?(beta|Beta|alpha|dev)/$1~$2/ https://github.com/drush-ops/drush/tags .*/archive/(\d\S*)\.tar\.gz debian/drush.manpages0000644000000000000000000000001712230052225012017 0ustar debian/drush.1 debian/drush.examples0000644000000000000000000000001312230052225012036 0ustar examples/* debian/copyright0000644000000000000000000000744412230052225011123 0ustar This package was debianized by Antoine Beaupré on Thu, 11 Jun 2009 21:40:53 -0400. It was downloaded from The includes/table.inc file was downloaded from , version 1.1.3. Upstream Authors: Arto Bendiken Franz Heinzmann (frando) Moshe Weitzman Richard Heyes Jan Schneider Copyright: 2006 Arto Bendiken 2007 Franz Heinzmann 2008 - 2009 Moshe Weitzman The includes/table.inc file is from the Console_Table PEAR package: 2002 - 2005 Richard Heyes 2006 - 2008 Jan Schneider License: This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA Drush is a Drupal module, and as all Drupal.org hosted code, it is GPL2+, according to the Drupal association: http://drupal.org/licensing/faq "Drupal and all contributed files hosted on Drupal.org are licensed under the GNU General Public License, version 2 or later. That means you are free to download, reuse, modify, and distribute any files hosted on Drupal.org's CVS repository under the terms of either the GPL version 2 or version 3, and to run Drupal in combination with any code with any license that is compatible with either versions 2 or 3, such as the Affero General Public License (AGPL) version 3." On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. The Debian packaging is ©2009, Antoine Beaupré and is licensed under the GPL, see above. The includes/table.inc comes from the Console_Table package and is licensed under the BSD License (3 clause): * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * o Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * o Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * o The names of the authors may not be used to endorse or promote products * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. debian/source/0000755000000000000000000000000012230052225010457 5ustar debian/source/format0000644000000000000000000000001412230052225011665 0ustar 3.0 (quilt) debian/source/patch-header0000644000000000000000000000154012230052225012727 0ustar Description: include a index.html file upstream doesn't provide an index.html file for all the *.html documentation provided. . they currently do not feel confortable maintaining such a file so we maintain our own. . some other changes may creep up in the debian package that I forget to document here. a good way to track those changes is to inspect the git history, using the following commands: . git clone http://git.drupal.org/project/drush.git cd drush git checkout debian git diff --stat origin/upstream # identify the modified files git log # show the commit logs on that file git blame # if the commit can't be found, locate the modified lines from the diff above... git show # ... and display the relevant commit Author: Antoine Beaupré Origin: vendor Forwarded: no Last-Update: 2011-09-30 debian/source/options0000644000000000000000000000006212230052225012073 0ustar # we track our changes in git single-debian-patch