ultimatepp/archive/linux_scripts/dostable
cxl 4bee3373e7 minor repository reorganization: obsolete directories moved to archive
git-svn-id: svn://ultimatepp.org/upp/trunk@1997 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2010-02-01 08:24:43 +00:00

52 lines
1.5 KiB
Bash
Executable file

#!/bin/bash
# dostable
# quick go to create deb package from my stable repo
#
#################################################################
# REPLACE VALUES WITH YOUR OWN #
# SVN repository full path
STABLE_PATH="/home/massimo/sources/uppstable"
#
# Destination path for generated debian
DEST_PATH="/home/massimo/sources/uppdeb"
#
# Mantainer name and email
export MAINTAINER="Massimo Del Fedele"
#
export EMAIL="max@veneto.com"
#################################################################
#
# checks if stable repo and destination path are ok
if [ ! -d $STABLE_PATH/uppsrc ]
then
echo "ERROR - UPP path not found in '$STABLE_PATH'"
echo "Please modify current script to fit your Upp development path"
exit 1
fi
if [ ! -d $DEST_PATH ]
then
echo "ERROR - Invalid destinatio path '$DEST_PATH'"
echo "Please modify current script to fit your destination path"
exit 1
fi
#locates 'uppstable2deb' script - first try on path
uppstable2deb="`which uppstable2deb`"
if [ x$uppstable2deb = x ]
then
# couldn't find it on path, just try on this script's path
LSOF=$(lsof -p $$ 2>/dev/null | grep -E "/"$(basename $0)"$")
uppstable2deb=$(echo $LSOF | sed -r s/'^([^\/]+)\/'/'\/'/1 2>/dev/null)
uppstable2deb=$(dirname $uppstable2deb)/uppstable2deb
fi
if [ ! -f $uppstable2deb ]
then
echo "ERROR - Could not find 'uppstable2deb' script"
echo "Please check if it's on current path"
exit 1
fi
#just run uppstable2deb with my params
$uppstable2deb $STABLE_PATH $DEST_PATH