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 else
echo "No filename differences" echo "No filename differences"
fi fi
# vim:ft=sh:ts=4:sw=4:et:

View File

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

View File

@ -1,17 +1,21 @@
#!/bin/bash #!/bin/bash
#
# finddeps - find packages that depend on a given depname
#
if [ "$1" = "" ]; then if [ "$1" = "" ]; then
echo "usage: finddep <depname>" echo "usage: finddeps <depname>"
echo "" 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 "" echo ""
exit 0 exit 0
fi fi
match=$1 match=$1
tld=`pwd` tld=$(pwd)
for d in `find . -type d`; do for d in $(find . -type d); do
cd $d cd $d
if [ -f PKGBUILD ]; then if [ -f PKGBUILD ]; then
unset pkgname depends makedepends unset pkgname depends makedepends
@ -34,3 +38,4 @@ for d in `find . -type d`; do
cd $tld cd $tld
done done
# vim:ft=sh:ts=4:sw=4:et:

10
lddd
View File

@ -1,6 +1,8 @@
#!/bin/sh #!/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=$IFS
IFS=':' IFS=':'
@ -11,7 +13,7 @@ TEMPDIR=$(mktemp /tmp/lddd-script.XXXX)
rm $TEMPDIR rm $TEMPDIR
mkdir -p $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. # Check ELF binaries in the PATH and specified dir trees.
for tree in $PATH $libdirs $extras for tree in $PATH $libdirs $extras
do do
@ -42,4 +44,4 @@ sort -u $TEMPDIR/pacman.txt >> $TEMPDIR/possible-rebuilds.txt
echo "Files saved to $TEMPDIR" 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/* rm -rf ${chrootdir}/rw/build/*
echo "Build complete" echo "Build complete"
fi fi
# vim:ft=sh:ts=4:sw=4:et:

View File

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