forked from extern/shorewall_code
Create base/ directory during upload
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@7869 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
8889d86d75
commit
1dba4513b7
@ -21,6 +21,7 @@ UPLOADLITE=
|
|||||||
UPLOADXML=
|
UPLOADXML=
|
||||||
UPLOADHTML=
|
UPLOADHTML=
|
||||||
PARTIAL=Yes
|
PARTIAL=Yes
|
||||||
|
BASE=
|
||||||
|
|
||||||
done=
|
done=
|
||||||
|
|
||||||
@ -97,6 +98,7 @@ case $1 in
|
|||||||
literpm=shorewall-lite-${1%-*}-0${1#*-}.noarch.rpm
|
literpm=shorewall-lite-${1%-*}-0${1#*-}.noarch.rpm
|
||||||
perlrpm=shorewall-perl-${1%-*}-0${1#*-}.noarch.rpm
|
perlrpm=shorewall-perl-${1%-*}-0${1#*-}.noarch.rpm
|
||||||
shellrpm=shorewall-shell-${1%-*}-0${1#*-}.noarch.rpm
|
shellrpm=shorewall-shell-${1%-*}-0${1#*-}.noarch.rpm
|
||||||
|
BASE=Yes
|
||||||
;;
|
;;
|
||||||
4.0.*-*)
|
4.0.*-*)
|
||||||
DEST="/srv/ftp/pub/shorewall/development/staging/${1%.*}/shorewall-${1}"
|
DEST="/srv/ftp/pub/shorewall/development/staging/${1%.*}/shorewall-${1}"
|
||||||
@ -109,6 +111,7 @@ case $1 in
|
|||||||
literpm=shorewall-lite-${1}-1.noarch.rpm
|
literpm=shorewall-lite-${1}-1.noarch.rpm
|
||||||
perlrpm=shorewall-perl-${1}-1.noarch.rpm
|
perlrpm=shorewall-perl-${1}-1.noarch.rpm
|
||||||
shellrpm=shorewall-shell-${1}-1.noarch.rpm
|
shellrpm=shorewall-shell-${1}-1.noarch.rpm
|
||||||
|
BASE=Yes
|
||||||
;;
|
;;
|
||||||
4.1.*)
|
4.1.*)
|
||||||
DEST="/srv/ftp/pub/shorewall/development/staging/${1%.*}/shorewall-$1"
|
DEST="/srv/ftp/pub/shorewall/development/staging/${1%.*}/shorewall-$1"
|
||||||
@ -117,6 +120,7 @@ case $1 in
|
|||||||
literpm=shorewall-lite-${1}-1.noarch.rpm
|
literpm=shorewall-lite-${1}-1.noarch.rpm
|
||||||
perlrpm=shorewall-perl-${1}-1.noarch.rpm
|
perlrpm=shorewall-perl-${1}-1.noarch.rpm
|
||||||
shellrpm=shorewall-shell-${1}-1.noarch.rpm
|
shellrpm=shorewall-shell-${1}-1.noarch.rpm
|
||||||
|
BASE=Yes
|
||||||
;;
|
;;
|
||||||
3.*[13579].*)
|
3.*[13579].*)
|
||||||
DEST="/srv/ftp/pub/shorewall/development/staging/${1%.*}/shorewall-$1"
|
DEST="/srv/ftp/pub/shorewall/development/staging/${1%.*}/shorewall-$1"
|
||||||
@ -173,14 +177,14 @@ fi
|
|||||||
|
|
||||||
if [ "$HOSTNAME" = lists ]; then
|
if [ "$HOSTNAME" = lists ]; then
|
||||||
mkdir -p $DEST
|
mkdir -p $DEST
|
||||||
|
[ -n "$BASE" ] && mkdir $DEST/base
|
||||||
COMMAND=cp
|
COMMAND=cp
|
||||||
else
|
else
|
||||||
ssh $USER mkdir -p $DEST
|
ssh $USER mkdir -p $DEST
|
||||||
|
[ -n "$BASE" ] && ssh $USER mkdir -p $DEST
|
||||||
DEST=${USER}:${DEST}
|
DEST=${USER}:${DEST}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
files="errata known_problems.txt releasenotes.txt patch-$1 ${1}.*"
|
|
||||||
|
|
||||||
[ -n "$UPLOADPERL" ] && files="$files shorewall-perl-${1}.* $perlrpm"
|
[ -n "$UPLOADPERL" ] && files="$files shorewall-perl-${1}.* $perlrpm"
|
||||||
[ -n "$UPLOADCOMMON" ] && files="$files shorewall-common-${1}.* $rpm"
|
[ -n "$UPLOADCOMMON" ] && files="$files shorewall-common-${1}.* $rpm"
|
||||||
[ -n "$UPLOADSHELL" ] && files="$files shorewall-shell-${1}.* $shellrpm"
|
[ -n "$UPLOADSHELL" ] && files="$files shorewall-shell-${1}.* $shellrpm"
|
||||||
@ -188,4 +192,8 @@ files="errata known_problems.txt releasenotes.txt patch-$1 ${1}.*"
|
|||||||
[ -n "$UPLOADXML" ] && files="$files shorewall-docs-xml-${1}.* $literpm"
|
[ -n "$UPLOADXML" ] && files="$files shorewall-docs-xml-${1}.* $literpm"
|
||||||
[ -n "$UPLOADHTML" ] && files="$files shorewall-docs-html-${1}.* $literpm"
|
[ -n "$UPLOADHTML" ] && files="$files shorewall-docs-html-${1}.* $literpm"
|
||||||
|
|
||||||
|
[ -n "$BASE" ] && $COMMAND $files $DEST/base
|
||||||
|
|
||||||
|
files="errata known_problems.txt releasenotes.txt patch-$1 ${1}.*"
|
||||||
|
|
||||||
$COMMAND -r $files $DEST
|
$COMMAND -r $files $DEST
|
||||||
|
@ -21,6 +21,7 @@ UPLOADLITE=
|
|||||||
UPLOADXML=
|
UPLOADXML=
|
||||||
UPLOADHTML=
|
UPLOADHTML=
|
||||||
PARTIAL=Yes
|
PARTIAL=Yes
|
||||||
|
BASE=
|
||||||
|
|
||||||
done=
|
done=
|
||||||
|
|
||||||
@ -97,6 +98,7 @@ case $1 in
|
|||||||
literpm=shorewall-lite-${1%-*}-0${1#*-}.noarch.rpm
|
literpm=shorewall-lite-${1%-*}-0${1#*-}.noarch.rpm
|
||||||
perlrpm=shorewall-perl-${1%-*}-0${1#*-}.noarch.rpm
|
perlrpm=shorewall-perl-${1%-*}-0${1#*-}.noarch.rpm
|
||||||
shellrpm=shorewall-shell-${1%-*}-0${1#*-}.noarch.rpm
|
shellrpm=shorewall-shell-${1%-*}-0${1#*-}.noarch.rpm
|
||||||
|
BASE=Yes
|
||||||
;;
|
;;
|
||||||
4.0.*-*)
|
4.0.*-*)
|
||||||
DEST="/srv/ftp/pub/shorewall/${1%.*}/shorewall-${1%-*}"
|
DEST="/srv/ftp/pub/shorewall/${1%.*}/shorewall-${1%-*}"
|
||||||
@ -109,6 +111,7 @@ case $1 in
|
|||||||
literpm=shorewall-lite-${1}-1.noarch.rpm
|
literpm=shorewall-lite-${1}-1.noarch.rpm
|
||||||
perlrpm=shorewall-perl-${1}-1.noarch.rpm
|
perlrpm=shorewall-perl-${1}-1.noarch.rpm
|
||||||
shellrpm=shorewall-shell-${1}-1.noarch.rpm
|
shellrpm=shorewall-shell-${1}-1.noarch.rpm
|
||||||
|
BASE=Yes
|
||||||
;;
|
;;
|
||||||
4.1.*-*)
|
4.1.*-*)
|
||||||
DEST="/srv/ftp/pub/shorewall/development/${1%.*}/shorewall-${1%-*}"
|
DEST="/srv/ftp/pub/shorewall/development/${1%.*}/shorewall-${1%-*}"
|
||||||
@ -121,6 +124,7 @@ case $1 in
|
|||||||
literpm=shorewall-lite-${1}-1.noarch.rpm
|
literpm=shorewall-lite-${1}-1.noarch.rpm
|
||||||
perlrpm=shorewall-perl-${1}-1.noarch.rpm
|
perlrpm=shorewall-perl-${1}-1.noarch.rpm
|
||||||
shellrpm=shorewall-shell-${1}-1.noarch.rpm
|
shellrpm=shorewall-shell-${1}-1.noarch.rpm
|
||||||
|
BASE=Yes
|
||||||
;;
|
;;
|
||||||
3.*[13579].*)
|
3.*[13579].*)
|
||||||
DEST="/srv/ftp/pub/shorewall/development/${1%.*}/shorewall-$1"
|
DEST="/srv/ftp/pub/shorewall/development/${1%.*}/shorewall-$1"
|
||||||
@ -177,14 +181,14 @@ fi
|
|||||||
|
|
||||||
if [ "$HOSTNAME" = lists ]; then
|
if [ "$HOSTNAME" = lists ]; then
|
||||||
mkdir -p $DEST
|
mkdir -p $DEST
|
||||||
|
[ -n "$BASE" ] && mkdir $DEST/base
|
||||||
COMMAND=cp
|
COMMAND=cp
|
||||||
else
|
else
|
||||||
ssh $USER mkdir -p $DEST
|
ssh $USER mkdir -p $DEST
|
||||||
|
[ -n "$BASE" ] && ssh $USER mkdir -p $DEST
|
||||||
DEST=${USER}:${DEST}
|
DEST=${USER}:${DEST}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
files="errata known_problems.txt releasenotes.txt patch-$1 ${1}.*"
|
|
||||||
|
|
||||||
[ -n "$UPLOADPERL" ] && files="$files shorewall-perl-${1}.* $perlrpm"
|
[ -n "$UPLOADPERL" ] && files="$files shorewall-perl-${1}.* $perlrpm"
|
||||||
[ -n "$UPLOADCOMMON" ] && files="$files shorewall-common-${1}.* $rpm"
|
[ -n "$UPLOADCOMMON" ] && files="$files shorewall-common-${1}.* $rpm"
|
||||||
[ -n "$UPLOADSHELL" ] && files="$files shorewall-shell-${1}.* $shellrpm"
|
[ -n "$UPLOADSHELL" ] && files="$files shorewall-shell-${1}.* $shellrpm"
|
||||||
@ -192,4 +196,8 @@ files="errata known_problems.txt releasenotes.txt patch-$1 ${1}.*"
|
|||||||
[ -n "$UPLOADXML" ] && files="$files shorewall-docs-xml-${1}.* $literpm"
|
[ -n "$UPLOADXML" ] && files="$files shorewall-docs-xml-${1}.* $literpm"
|
||||||
[ -n "$UPLOADHTML" ] && files="$files shorewall-docs-html-${1}.* $literpm"
|
[ -n "$UPLOADHTML" ] && files="$files shorewall-docs-html-${1}.* $literpm"
|
||||||
|
|
||||||
|
[ -n "$BASE" ] && $COMMAND $files $DEST/base
|
||||||
|
|
||||||
|
files="errata known_problems.txt releasenotes.txt patch-$1 ${1}.*"
|
||||||
|
|
||||||
$COMMAND -r $files $DEST
|
$COMMAND -r $files $DEST
|
||||||
|
Loading…
Reference in New Issue
Block a user