1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-21 23:38:49 -05:00

Replace space-based indents in prototypes with tabs

The previous commit removed the Vim modelines which replaced tabs with
spaces. This commit replaces the space-based indents with tabs.

Tabs are generally more compatible with various user preferences
regarding indentation of code. Using space-based indents is not flexible
regarding user preferences at all.

Signed-off-by: Jason St. John <jstjohn@purdue.edu>
This commit is contained in:
Jason St. John 2012-11-16 18:31:43 -05:00 committed by Allan McRae
parent 1dc3de3f69
commit a9ad5a75f2
3 changed files with 42 additions and 42 deletions

View File

@ -29,44 +29,44 @@ noextract=()
md5sums=() #generate with 'makepkg -g' md5sums=() #generate with 'makepkg -g'
build() { build() {
cd "$srcdir/$pkgbase-$pkgver" cd "$srcdir/$pkgbase-$pkgver"
./configure --prefix=/usr ./configure --prefix=/usr
make make
} }
check() { check() {
cd "$srcdir/$pkgname-$pkgver" cd "$srcdir/$pkgname-$pkgver"
make -k check make -k check
} }
package_pkg1() { package_pkg1() {
# options and directives that can be overridden # options and directives that can be overridden
pkgver= pkgver=
pkgrel= pkgrel=
epoch= epoch=
pkgdesc="" pkgdesc=""
arch=() arch=()
url="" url=""
license=() license=()
groups=() groups=()
depends=() depends=()
optdepends=() optdepends=()
provides=() provides=()
conflicts=() conflicts=()
replaces=() replaces=()
backup=() backup=()
options=() options=()
install= install=
changelog= changelog=
cd "$srcdir/$pkgbase-$pkgver" cd "$srcdir/$pkgbase-$pkgver"
make DESTDIR="$pkgdir/" install-pkg1 make DESTDIR="$pkgdir/" install-pkg1
} }
package_pkg2() { package_pkg2() {
# options and directives overrides # options and directives overrides
pkgdesc="" pkgdesc=""
cd "$srcdir/$pkgbase-$pkgver" cd "$srcdir/$pkgbase-$pkgver"
make DESTDIR="$pkgdir/" install-pkg2 make DESTDIR="$pkgdir/" install-pkg2
} }

View File

@ -29,17 +29,17 @@ noextract=()
md5sums=() #generate with 'makepkg -g' md5sums=() #generate with 'makepkg -g'
build() { build() {
cd "$srcdir/$pkgname-$pkgver" cd "$srcdir/$pkgname-$pkgver"
./configure --prefix=/usr ./configure --prefix=/usr
make make
} }
check() { check() {
cd "$srcdir/$pkgname-$pkgver" cd "$srcdir/$pkgname-$pkgver"
make -k check make -k check
} }
package() { package() {
cd "$srcdir/$pkgname-$pkgver" cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir/" install make DESTDIR="$pkgdir/" install
} }

View File

@ -4,32 +4,32 @@
## arg 1: the new package version ## arg 1: the new package version
#pre_install() { #pre_install() {
# do something here # do something here
#} #}
## arg 1: the new package version ## arg 1: the new package version
#post_install() { #post_install() {
# do something here # do something here
#} #}
## arg 1: the new package version ## arg 1: the new package version
## arg 2: the old package version ## arg 2: the old package version
#pre_upgrade() { #pre_upgrade() {
# do something here # do something here
#} #}
## arg 1: the new package version ## arg 1: the new package version
## arg 2: the old package version ## arg 2: the old package version
#post_upgrade() { #post_upgrade() {
# do something here # do something here
#} #}
## arg 1: the old package version ## arg 1: the old package version
#pre_remove() { #pre_remove() {
# do something here # do something here
#} #}
## arg 1: the old package version ## arg 1: the old package version
#post_remove() { #post_remove() {
# do something here # do something here
#} #}