Browse Source

sde-check-package: added translations support

karasz/new-early
Alejandro Mery 17 years ago
parent
commit
2256ec0ce0
2 changed files with 23 additions and 1 deletions
  1. +6
    -1
      bin/sde-check-package
  2. +17
    -0
      etc/check_package.sed

+ 6
- 1
bin/sde-check-package

@ -123,7 +123,12 @@ check_package() {
;;
esac
[ -z "$cvurl" ] || url="$cvurl"
if [ -n "$cvurl" ]; then
url="$cvurl"
elif [ -s "$SDEROOT/etc/check_package.sed" ]; then
# translate
url=$(echo "$url" | sed -f "$SDEROOT/etc/check_package.sed")
fi
x="${url%%:*}"
case "$x" in

+ 17
- 0
etc/check_package.sed

@ -0,0 +1,17 @@
#!/bin/sed
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: etc/check_package.sed
# Copyright (C) 2006 - 2009 The OpenSDE Project
# Copyright (C) 2005 - 2006 The T2 SDE Project
#
# More information can be found in the files COPYING and README.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- SDE-COPYRIGHT-NOTE-END ---
s,^http://\(.*\.\)\?dl\.\(sourceforge\|sf\)\.net/,http://prdownloads.sourceforge.net/,

Loading…
Cancel
Save