Whitespace fixes/cleanup to all of the scripts

Add the same vim modeline to all the files, as well as cleanup the newly
added scripts a bit. If you look at this diff with the -w option, you'll see
it really isn't all that significant.

Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Dan McGee 2007-11-28 21:20:24 -06:00
parent c229a696a2
commit f05495dfc8
6 changed files with 133 additions and 120 deletions

View File

@ -73,3 +73,5 @@ if diff filelist-old filelist | grep '\.so\.' > /dev/null 2>&1; then
else
echo "No filename differences"
fi
# vim:ft=sh:ts=4:sw=4:et:

View File

@ -78,21 +78,21 @@ fi
echo "===> Uploaded $pkgfile"
if [ "$1" != "" ]; then
cvs commit -m "upgpkg: $pkgname $pkgver-$pkgrel
$1" > /dev/null
if [ $? -ne 0 ]; then
cvs commit -m "upgpkg: $pkgname $pkgver-$pkgrel
$1" > /dev/null
if [ $? -ne 0 ]; then
echo "Cancelled"
exit 1
fi
echo "===> Commited with \"upgpkg: $pkgname $pkgver-$pkgrel
$1\" message"
fi
echo "===> Commited with \"upgpkg: $pkgname $pkgver-$pkgrel
$1\" message"
else
cvs commit -m "upgpkg: $pkgname $pkgver-$pkgrel" > /dev/null
if [ $? -ne 0 ]; then
cvs commit -m "upgpkg: $pkgname $pkgver-$pkgrel" > /dev/null
if [ $? -ne 0 ]; then
echo "Cancelled"
exit 1
fi
echo "===> Commited with \"upgpkg: $pkgname $pkgver-$pkgrel\" message"
fi
echo "===> Commited with \"upgpkg: $pkgname $pkgver-$pkgrel\" message"
fi
cvs tag -c -F -R $tag > /dev/null
@ -101,3 +101,5 @@ if [ $? -ne 0 ]; then
exit 1
fi
echo "===> Tagged as $tag"
# vim:ft=sh:ts=4:sw=4:et:

View File

@ -1,17 +1,21 @@
#!/bin/bash
#
# finddeps - find packages that depend on a given depname
#
if [ "$1" = "" ]; then
echo "usage: finddep <depname>"
echo "usage: finddeps <depname>"
echo ""
echo "run this script from the top-level directory of your ABS tree"
echo "Find packages that depend on a given depname."
echo "Run this script from the top-level directory of your ABS tree."
echo ""
exit 0
fi
match=$1
tld=`pwd`
tld=$(pwd)
for d in `find . -type d`; do
for d in $(find . -type d); do
cd $d
if [ -f PKGBUILD ]; then
unset pkgname depends makedepends
@ -34,3 +38,4 @@ for d in `find . -type d`; do
cd $tld
done
# vim:ft=sh:ts=4:sw=4:et:

10
lddd
View File

@ -1,6 +1,8 @@
#!/bin/sh
# 2004/08/22 K. Piche Find missing library references.
# modified by Tobias Powalowski <tpowa@archlinux.org>
#
# lddd - find broken library links on your machine
#
ifs=$IFS
IFS=':'
@ -11,7 +13,7 @@ TEMPDIR=$(mktemp /tmp/lddd-script.XXXX)
rm $TEMPDIR
mkdir -p $TEMPDIR
echo " Go out drink some tea, this will take a while :) ..."
echo " Go out and drink some tea, this will take a while :) ..."
# Check ELF binaries in the PATH and specified dir trees.
for tree in $PATH $libdirs $extras
do
@ -42,4 +44,4 @@ sort -u $TEMPDIR/pacman.txt >> $TEMPDIR/possible-rebuilds.txt
echo "Files saved to $TEMPDIR"
exit
# vim:ft=sh:ts=4:sw=4:et:

View File

@ -132,3 +132,5 @@ else
rm -rf ${chrootdir}/rw/build/*
echo "Build complete"
fi
# vim:ft=sh:ts=4:sw=4:et:

View File

@ -98,7 +98,7 @@ chroot_umount ()
# }}}
if [ "$RUN" != "" ]; then
# run chroot {{{
# run chroot {{{
#Sanity check
if [ ! -f "${working_dir}/.arch-chroot" ]; then
echo "error: '${working_dir}' does not appear to be a Arch chroot"
@ -111,9 +111,9 @@ if [ "$RUN" != "" ]; then
echo "starting chroot ($RUN)"
chroot "${working_dir}" ${RUN}
# }}}
# }}}
else
# {{{ build chroot
# {{{ build chroot
if [ -e "${working_dir}" -a "${FORCE}" = "n" ]; then
echo "error: working dir '${working_dir}' already exists - try using -f"
exit 1
@ -174,7 +174,7 @@ else
if [ ! -e "${working_dir}/.arch-chroot" ]; then
date +%s > "${working_dir}/.arch-chroot"
fi
# }}}
# }}}
fi
# vim:ft=sh:ts=4:sw=4:et: