add ijon
This commit is contained in:
parent
bbb3215911
commit
a9a58fb900
1 changed files with 26 additions and 4 deletions
|
@ -11,7 +11,7 @@ DSCDIR="./dsc"
|
||||||
|
|
||||||
setup()
|
setup()
|
||||||
{
|
{
|
||||||
mkdir -p $BUILD $DEBDIRS $DSCDIR
|
mkdir -p $BUILD $DSCDIR
|
||||||
|
|
||||||
if [ -d "$PYNEOGIT" ]; then
|
if [ -d "$PYNEOGIT" ]; then
|
||||||
echo "$PYNEOGIT already exists - not cloning again"
|
echo "$PYNEOGIT already exists - not cloning again"
|
||||||
|
@ -65,10 +65,27 @@ buildpyneo()
|
||||||
rm -rf $BUILD/*
|
rm -rf $BUILD/*
|
||||||
}
|
}
|
||||||
|
|
||||||
|
buildparoli()
|
||||||
|
{
|
||||||
|
[ ! -d $PAROLIGIT ] && { echo "no such directory: $PAROLIGIT"; exit 1; }
|
||||||
|
[ ! -d $BUILD ] && { echo "no such directory: $BUILD"; exit 1; }
|
||||||
|
[ ! -d $DSCDIR ] && { echo "no such directory: $DSCDIR"; exit 1; }
|
||||||
|
|
||||||
|
for pkg in ijon; do
|
||||||
|
cp -r "$PAROLIGIT/$pkg" "$BUILD/python-$pkg-$DATENOW"
|
||||||
|
tar --directory "$BUILD" --create --gzip --file "$BUILD/python-${pkg}_$DATENOW.orig.tar.gz" "python-$pkg-$DATENOW"
|
||||||
|
cp -r "$DEBDIRS/python-$pkg-debian" "$BUILD/python-$pkg-$DATENOW/debian"
|
||||||
|
DEBEMAIL="josch@pyneo.org" DEBFULLNAME="Johannes Schauer" dch --package "python-$pkg" --newversion "$DATENOW" --distribution unstable --empty --changelog "$BUILD/python-$pkg-$DATENOW/debian/changelog" --create "new nightly build"
|
||||||
|
( cd "$BUILD/python-$pkg-$DATENOW"; dpkg-buildpackage -S -us -uc )
|
||||||
|
done
|
||||||
|
mv $BUILD/*_* "$DSCDIR"
|
||||||
|
rm -rf $BUILD/*
|
||||||
|
}
|
||||||
|
|
||||||
fullclean()
|
fullclean()
|
||||||
{
|
{
|
||||||
rm -rf $BUILD/*
|
rm -rf $BUILD
|
||||||
rm -rf $DSCDIR/*
|
rm -rf $DSCDIR
|
||||||
rm -rf $PYNEOGIT
|
rm -rf $PYNEOGIT
|
||||||
rm -rf $PAROLIGIT
|
rm -rf $PAROLIGIT
|
||||||
}
|
}
|
||||||
|
@ -83,14 +100,19 @@ else
|
||||||
echo "doing setup"
|
echo "doing setup"
|
||||||
setup
|
setup
|
||||||
;;
|
;;
|
||||||
build)
|
buildall)
|
||||||
echo "building packages"
|
echo "building packages"
|
||||||
buildpyneo
|
buildpyneo
|
||||||
|
buildparoli
|
||||||
;;
|
;;
|
||||||
buildpyneo)
|
buildpyneo)
|
||||||
echo "building pyneo"
|
echo "building pyneo"
|
||||||
buildpyneo
|
buildpyneo
|
||||||
;;
|
;;
|
||||||
|
buildparoli)
|
||||||
|
echo "building paroli"
|
||||||
|
buildparoli
|
||||||
|
;;
|
||||||
fullclean)
|
fullclean)
|
||||||
echo "cleaning"
|
echo "cleaning"
|
||||||
fullclean
|
fullclean
|
||||||
|
|
Loading…
Reference in a new issue