[pkg-firebird-general] more pretty

Damyan Ivanov dam at modsoftsys.com
Sun Mar 4 21:31:11 CET 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

- -=| Tamas TEVESZ,  4.03.2007 11:31 |=-
> some more pretty like the previous one, plus
> 
> - hunk #2: better safe than sorry
> --- debian/get-orig-source.sh	(revision 997)
> +++ debian/get-orig-source.sh	(working copy)
> @@ -5,6 +5,11 @@
>
>  TMPDIR=`mktemp -d -p .`
>
> +if [ -z "$TMPDIR" ]; then
> +    echo "Can not create temporary directory"
> +    exit 1
> +fi
> +

Unneeded, since the script sets "set -e", causing the shell to bail out
when any command returns non-zero status.

> - hunks #3 and #5 were the wtf-faces of the week

> Index: debian/firebird2.0-super.postrm
> ===================================================================
> --- debian/firebird2.0-super.postrm	(revision 997)
> +++ debian/firebird2.0-super.postrm	(working copy)
> @@ -54,13 +54,7 @@
>                  db_get shared/firebird/purge_databases
>                  if [ "$RET" = 'true' ]; then
>                      DB_DIR="/var/lib/firebird/$FB_VER/data"
> -
> -                    find $DB_DIR -type f \( -name "*.fdb" -o -name "*.fbk" \) \
> -                        | (
> -                            while read f; do
> -                                rm "$f"
> -                            done
> -                        )
> +                    find $DB_DIR -type f '(' -name "*.fdb" -o -name "*.fbk" ')' -exec rm '{}' ';'

I have an even better one: :)

	find $DB_DIR -type f \( -name "*.fdb" -o -name "*.fbk \) \
		-delete

Yes, I personally like the backslashes more :|


	dam
- --
Damyan Ivanov                           Modular Software Systems
phone +359(2)928-2611, 929-3993              fax +359(2)920-0994
mobile +359(88)856-6067              JID dam at jabber.minus273.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF6yyPHqjlqpcl9jsRAn6DAJ94KMx/3d68YTfHtdtMilRxVwAA7QCdEmMD
1fioW3HbKdJ0juOo4Y3tArA=
=/blr
-----END PGP SIGNATURE-----



More information about the pkg-firebird-general mailing list