source: clfs-embedded/scripts/patch/uclibc-patches.sh@ 12cd5ac

Last change on this file since 12cd5ac was 3139927, checked in by Jim Gifford <clfs@…>, 16 years ago

Update uClibc

  • Property mode set to 100755
File size: 1.5 KB
Line 
1#!/bin/bash
2# Create a uClibc Patch
3
4# Get Version #
5#
6VERSION=$1
7
8# Check Input
9#
10if [ "${VERSION}" = "" ]; then
11 echo "$0 - uClibc_Version"
12 echo "This will Create a Patch for uClibc uClibc_Version"
13 exit 255
14fi
15
16# Download uClibc Source
17#
18cd /usr/src
19if ! [ -e uClibc-${VERSION}.tar.bz2 ]; then
20 wget http://www.uclibc.org/downloads/uClibc-${VERSION}.tar.bz2
21fi
22
23# Cleanup Directory
24#
25rm -rf uClibc-${VERSION} uClibc-${VERSION}.orig
26tar xvf uClibc-${VERSION}.tar.bz2
27mv uClibc-${VERSION} uClibc-${VERSION}.orig
28CURRENTDIR=$(pwd -P)
29
30# Get Current Updates from SVN
31#
32cd /usr/src
33FIXEDVERSION=$(echo ${VERSION} | sed -e 's/\./_/g')
34svn export svn://uclibc.org/branches/uClibc_${FIXEDVERSION} uClibc-${VERSION}
35
36# Create Patch
37#
38cd /usr/src
39echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > uClibc-${VERSION}-branch_update-x.patch
40echo "Date: `date +%m-%d-%Y`" >> uClibc-${VERSION}-branch_update-x.patch
41echo "Initial Package Version: ${VERSION}" >> uClibc-${VERSION}-branch_update-x.patch
42echo "Origin: Upstream" >> uClibc-${VERSION}-branch_update-x.patch
43echo "Upstream Status: Applied" >> uClibc-${VERSION}-branch_update-x.patch
44echo "Description: This is a branch update for uClibc-${VERSION}, and should be" >> uClibc-${VERSION}-branch_update-x.patch
45echo " rechecked periodically." >> uClibc-${VERSION}-branch_update-x.patch
46echo "" >> uClibc-${VERSION}-branch_update-x.patch
47diff -Naur uClibc-${VERSION}.orig uClibc-${VERSION} >> uClibc-${VERSION}-branch_update-x.patch
48echo "Created /usr/src/uClibc-${VERSION}-branch_update-x.patch."
Note: See TracBrowser for help on using the repository browser.