[pacman-dev] [PATCH 2/2] Replace space-based indents in prototypes with tabs

Jason St. John jstjohn at purdue.edu
Fri Nov 16 18:06:16 EST 2012


From: "Jason St. John" <jstjohn at purdue.edu>

The previous commit changed the Vim modeline to not replace tabs with
spaces. This commit replaces the space-based indents with tabs so that
the prototype files' indents are consistent with their modelines.

Signed-off-by: Jason St. John <jstjohn at purdue.edu>
---
 proto/PKGBUILD-split.proto | 58 +++++++++++++++++++++++-----------------------
 proto/PKGBUILD.proto       | 14 +++++------
 proto/proto.install        | 12 +++++-----
 3 files changed, 42 insertions(+), 42 deletions(-)

diff --git a/proto/PKGBUILD-split.proto b/proto/PKGBUILD-split.proto
index 41ee26e..26dc9b1 100644
--- a/proto/PKGBUILD-split.proto
+++ b/proto/PKGBUILD-split.proto
@@ -29,46 +29,46 @@ noextract=()
 md5sums=() #generate with 'makepkg -g'
 
 build() {
-  cd "$srcdir/$pkgbase-$pkgver"
-  ./configure --prefix=/usr
-  make
+	cd "$srcdir/$pkgbase-$pkgver"
+	./configure --prefix=/usr
+	make
 }
 
 check() {
-  cd "$srcdir/$pkgname-$pkgver"
-  make -k check
+	cd "$srcdir/$pkgname-$pkgver"
+	make -k check
 }
 
 package_pkg1() {
-  # options and directives that can be overridden
-  pkgver=
-  pkgrel=
-  epoch=
-  pkgdesc=""
-  arch=()
-  url=""
-  license=()
-  groups=()
-  depends=()
-  optdepends=()
-  provides=()
-  conflicts=()
-  replaces=()
-  backup=()
-  options=()
-  install=
-  changelog=
+	# options and directives that can be overridden
+	pkgver=
+	pkgrel=
+	epoch=
+	pkgdesc=""
+	arch=()
+	url=""
+	license=()
+	groups=()
+	depends=()
+	optdepends=()
+	provides=()
+	conflicts=()
+	replaces=()
+	backup=()
+	options=()
+	install=
+	changelog=
 
-  cd "$srcdir/$pkgbase-$pkgver"
-  make DESTDIR="$pkgdir/" install-pkg1
+	cd "$srcdir/$pkgbase-$pkgver"
+	make DESTDIR="$pkgdir/" install-pkg1
 }
 
 package_pkg2() {
-  # options and directives overrides
-  pkgdesc=""
+	# options and directives overrides
+	pkgdesc=""
 
-  cd "$srcdir/$pkgbase-$pkgver"
-  make DESTDIR="$pkgdir/" install-pkg2
+	cd "$srcdir/$pkgbase-$pkgver"
+	make DESTDIR="$pkgdir/" install-pkg2
 }
 
 # vim:set noet:
diff --git a/proto/PKGBUILD.proto b/proto/PKGBUILD.proto
index d0d0412..cbb92a9 100644
--- a/proto/PKGBUILD.proto
+++ b/proto/PKGBUILD.proto
@@ -29,19 +29,19 @@ noextract=()
 md5sums=() #generate with 'makepkg -g'
 
 build() {
-  cd "$srcdir/$pkgname-$pkgver"
-  ./configure --prefix=/usr
-  make
+	cd "$srcdir/$pkgname-$pkgver"
+	./configure --prefix=/usr
+	make
 }
 
 check() {
-  cd "$srcdir/$pkgname-$pkgver"
-  make -k check
+	cd "$srcdir/$pkgname-$pkgver"
+	make -k check
 }
 
 package() {
-  cd "$srcdir/$pkgname-$pkgver"
-  make DESTDIR="$pkgdir/" install
+	cd "$srcdir/$pkgname-$pkgver"
+	make DESTDIR="$pkgdir/" install
 }
 
 # vim:set noet:
diff --git a/proto/proto.install b/proto/proto.install
index 3234bea..3a6fc5d 100644
--- a/proto/proto.install
+++ b/proto/proto.install
@@ -4,34 +4,34 @@
 
 ## arg 1:  the new package version
 #pre_install() {
-  # do something here
+	# do something here
 #}
 
 ## arg 1:  the new package version
 #post_install() {
-  # do something here
+	# do something here
 #}
 
 ## arg 1:  the new package version
 ## arg 2:  the old package version
 #pre_upgrade() {
-  # do something here
+	# do something here
 #}
 
 ## arg 1:  the new package version
 ## arg 2:  the old package version
 #post_upgrade() {
-  # do something here
+	# do something here
 #}
 
 ## arg 1:  the old package version
 #pre_remove() {
-  # do something here
+	# do something here
 #}
 
 ## arg 1:  the old package version
 #post_remove() {
-  # do something here
+	# do something here
 #}
 
 # vim:set noet:
-- 
1.8.0



More information about the pacman-dev mailing list