diff options
-rwxr-xr-x | db-core | 6 | ||||
-rwxr-xr-x | db-core64 | 6 | ||||
-rwxr-xr-x | db-extra | 6 | ||||
-rwxr-xr-x | db-extra64 | 6 | ||||
-rwxr-xr-x | db-testing | 6 | ||||
-rwxr-xr-x | db-testing64 | 6 | ||||
-rwxr-xr-x | db-unstable | 6 | ||||
-rwxr-xr-x | db-unstable64 | 6 | ||||
-rw-r--r-- | db-update (renamed from db-inc) | 8 |
9 files changed, 16 insertions, 40 deletions
@@ -1,7 +1,3 @@ #!/bin/bash -repoid=5 -reponame="core" -arch="i686" - -. $(dirname $0)/db-inc +$(dirname $0)/db-update "i686" "core" @@ -1,7 +1,3 @@ #!/bin/bash -repoid=5 -reponame="core" -arch="x86_64" - -. $(dirname $0)/db-inc +$(dirname $0)/db-update "i686" "core" @@ -1,7 +1,3 @@ #!/bin/bash -repoid=2 -reponame="extra" -arch="i686" - -. $(dirname $0)/db-inc +$(dirname $0)/db-update "i686" "extra" @@ -1,7 +1,3 @@ #!/bin/bash -repoid=2 -reponame="extra" -arch="x86_64" - -. $(dirname $0)/db-inc +$(dirname $0)/db-update "x86_64" "extra" @@ -1,7 +1,3 @@ #!/bin/bash -repoid=4 -reponame="testing" -arch="i686" - -. $(dirname $0)/db-inc +$(dirname $0)/db-update "i686" "testing" diff --git a/db-testing64 b/db-testing64 index c34355b..244372b 100755 --- a/db-testing64 +++ b/db-testing64 @@ -1,7 +1,3 @@ #!/bin/bash -repoid=4 -reponame="testing" -arch="x86_64" - -. $(dirname $0)/db-inc +$(dirname $0)/db-update "x86_64" "testing" diff --git a/db-unstable b/db-unstable index b0231b4..a9aa49c 100755 --- a/db-unstable +++ b/db-unstable @@ -1,8 +1,4 @@ #!/bin/bash -repoid=3 -reponame="unstable" -arch="i686" - -. $(dirname $0)/db-inc +$(dirname $0)/db-update "i686" "unstable" diff --git a/db-unstable64 b/db-unstable64 index 225cf97..d9448ab 100755 --- a/db-unstable64 +++ b/db-unstable64 @@ -1,8 +1,4 @@ #!/bin/bash -repoid=3 -reponame="unstable" -arch="x86_64" - -. $(dirname $0)/db-inc +$(dirname $0)/db-update "x86_64" "unstable" @@ -3,8 +3,16 @@ # where are the arch scripts located? ARCHDIR="/arch" +if [ $# -ne 2 ]; then + echo "usage: $(basename $0) <arch> <repo>" + exit 1 +fi + #All this fun stuff used to be in the db-(whatever) files # Let's make it cleaner +arch="$1" +reponame="$2" + export CARCH="$arch" ftppath="/home/ftp/$reponame/os/$arch/" svnpath="/home/svn-packages" |