#!/bin/bash # # Copyright (C) 2006 Brian Brazil # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # set -ex . config rm -rf $WORKINGDIR/builder mkdir -p $WORKINGDIR/builder cd $WORKINGDIR/builder mkdir -p builder/debian cd builder svn co http://svn.gnewsense.svnhopper.net/gnewsense/builder/trunk builder VERSION=$(cd builder; svn info -R | sed -n 's/^Revision: //p' | sort -gr | head -n 1) find builder -name .svn -print0 | xargs -0 rm -rf EDITOR=false dch --create --package builder -v $VERSION-$BUILDER_VERSION "Automatically generated" sed -i "/XXXXXX/d;s/UNRELEASED/$RELEASE/" debian/changelog cat > debian/control < Standards-Version: 0.0.0 Package: builder Architecture: any Depends: Priority: extra Description: gNewSense distribution builder This package contains the tools need to create a GNU/Linux distribution based off Ubuntu EOF cat > debian/rules <