Projekt

Obecné

Profil

« Předchozí | Další » 

Revize c2e44ab0

Přidáno uživatelem Michal Kliment před více než 9 roky(ů)

Release 1.0.12

Zobrazit rozdíly:

application/vendors/deb/debianization.sh
fi
NAMES=(freenetis freenetis-monitoring freenetis-redirection freenetis-ulogd freenetis-ssh-keys)
DEBIANS=(lenny squeeze wheezy)
VERSION=$1
if [ $# -eq 2 ]; then
if [ $# -eq 2 ] || [ $# -eq 3 ]; then
NAMES=($2)
fi
if [ $# -eq 3 ]; then
DEBIANS=($3)
fi
# functions ####################################################################
function red_echo() {
......
for name in ${NAMES[*]}
do
for debian in ${DEBIANS[*]}
do
deb_sh=./$name/debianization.sh
if [ -f "$deb_sh" ]; then
./$deb_sh "$VERSION"
./$deb_sh "$VERSION" "$debian"
if [ $? -eq 0 ]; then
green_echo ">>>> [$name] debianized"
green_echo ">>>> [$name+$debian] debianized"
else
red_echo ">>>> [$name] an error occured during debianization"
red_echo ">>>> [$name+$debian] an error occured during debianization"
fi
else
red_echo ">>>> [$name] not debianized (debianization utility is missing)"
red_echo ">>>> [$name+$debian] not debianized (debianization utility is missing)"
fi
done
done

Také k dispozici: Unified diff