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