From c268e0cfbea429a905f2ace4f1be33f80863e20b Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Sat, 9 Oct 2010 20:23:14 +0200 Subject: [PATCH] mkpkg: add script to get and pack siglaunchd sources Signed-off-by: Stephan Raue --- tools/mkpkg/mkpkg_siglaunchd | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 tools/mkpkg/mkpkg_siglaunchd diff --git a/tools/mkpkg/mkpkg_siglaunchd b/tools/mkpkg/mkpkg_siglaunchd new file mode 100755 index 0000000000..384f40f190 --- /dev/null +++ b/tools/mkpkg/mkpkg_siglaunchd @@ -0,0 +1,24 @@ +#!/bin/sh + +echo "getting sources..." + svn checkout svn://svn.projects.openmoko.org/svnroot/siglaunchd/trunk siglaunchd-latest + +echo "getting version..." + cd siglaunchd-latest + SVN_REV=`LANG=C svn info 2>/dev/null | grep Revision: | sed -e 's/.*\: //'` + echo $SVN_REV + cd .. + +echo "copying sources..." + rm -rf siglaunchd-$SVN_REV + cp -R siglaunchd-latest siglaunchd-$SVN_REV + +echo "cleaning sources..." + find siglaunchd-$SVN_REV -name .svn -exec rm -rf {} ";" + +echo "packing sources..." + tar cvjf siglaunchd-$SVN_REV.tar.bz2 siglaunchd-$SVN_REV + +echo "remove temporary sourcedir..." + rm -rf siglaunchd-$SVN_REV +