[Clfs-commits] commit: r4390 - in /trunk/scripts/patch: bash-patch.sh binutils-patch.sh ncurses-patch.sh readline-patch.sh vim-patch.sh

svn at cross-lfs.org svn at cross-lfs.org
Thu Jan 8 15:56:43 PST 2009


Author: jim
Date: Thu Jan  8 23:56:42 2009
New Revision: 4390

Log:
Updated Patch Creation Scripts

Modified:
    trunk/scripts/patch/bash-patch.sh
    trunk/scripts/patch/binutils-patch.sh
    trunk/scripts/patch/ncurses-patch.sh
    trunk/scripts/patch/readline-patch.sh
    trunk/scripts/patch/vim-patch.sh

Modified: trunk/scripts/patch/bash-patch.sh
==============================================================================
--- trunk/scripts/patch/bash-patch.sh (original)
+++ trunk/scripts/patch/bash-patch.sh Thu Jan  8 23:56:42 2009
@@ -79,29 +79,30 @@
 
 # Cleanup Directory
 #
-cd /usr/src
-cd bash-${VERSION}
-for file in $(find * -name *~); do
-	rm -f ${file}
-done
-for file in $(find * -name *.orig); do
-	rm -f ${file}
+for dir in $(find * -type d); do
+	cd /usr/src/bash-${VERSION}/${dir}
+	for file in $(find * -name *~); do
+		rm -f ${file}
+	done
+	for file in $(find * -name *.orig); do
+		rm -f ${file}
+	done
 done
 
 # Create Patch
 #
 cd /usr/src
-echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > bash-${VERSION}-fixes-x.patch
-echo "Date: `date +%m-%d-%Y`" >> bash-${VERSION}-fixes-x.patch
-echo "Initial Package Version: ${VERSION}" >> bash-${VERSION}-fixes-x.patch
-echo "Origin: Upstream" >> bash-${VERSION}-fixes-x.patch
-echo "Upstream Status: Applied" >> bash-${VERSION}-fixes-x.patch
-echo "Description: Contains all upstream patches up to ${VERSION}-${FILES}" >> bash-${VERSION}-fixes-x.patch
+echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > bash-${VERSION}-branch_update-x.patch
+echo "Date: `date +%m-%d-%Y`" >> bash-${VERSION}-branch_update-x.patch
+echo "Initial Package Version: ${VERSION}" >> bash-${VERSION}-branch_update-x.patch
+echo "Origin: Upstream" >> bash-${VERSION}-branch_update-x.patch
+echo "Upstream Status: Applied" >> bash-${VERSION}-branch_update-x.patch
+echo "Description: Contains all upstream patches up to ${VERSION}-${FILES}" >> bash-${VERSION}-branch_update-x.patch
 if [ -n "${SKIPPED}" ]; then
-	echo "             The following patches were skipped" >> bash-${VERSION}-fixes-x.patch
-	echo "            ${SKIPPED}" >> bash-${VERSION}-fixes-x.patch
+	echo "             The following patches were skipped" >> bash-${VERSION}-branch_update-x.patch
+	echo "            ${SKIPPED}" >> bash-${VERSION}-branch_update-x.patch
 fi
-echo "" >> bash-${VERSION}-fixes-x.patch
-diff -Naur bash-${VERSION}.orig bash-${VERSION} >> bash-${VERSION}-fixes-x.patch
-echo "Created /usr/src/bash-${VERSION}-fixes-x.patch."
+echo "" >> bash-${VERSION}-branch_update-x.patch
+diff -Naur bash-${VERSION}.orig bash-${VERSION} >> bash-${VERSION}-branch_update-x.patch
+echo "Created /usr/src/bash-${VERSION}-branch_update-x.patch."
 

Modified: trunk/scripts/patch/binutils-patch.sh
==============================================================================
--- trunk/scripts/patch/binutils-patch.sh (original)
+++ trunk/scripts/patch/binutils-patch.sh Thu Jan  8 23:56:42 2009
@@ -54,6 +54,18 @@
 	cd ..
 done
 
+# Cleanup Directory
+#
+for dir in $(find * -type d); do
+	cd /usr/src/binutils-${VERSION}
+	for file in $(find * -name *~); do
+		rm -f ${file}
+	done
+	for file in $(find * -name *.orig); do
+		rm -f ${file}
+	done
+done
+
 rm -f /usr/src/binutils-${VERSION}.orig/md5.sum
 
 # Make Binutils a Release

Modified: trunk/scripts/patch/ncurses-patch.sh
==============================================================================
--- trunk/scripts/patch/ncurses-patch.sh (original)
+++ trunk/scripts/patch/ncurses-patch.sh Thu Jan  8 23:56:42 2009
@@ -75,13 +75,16 @@
 
 # Cleanup Directory
 #
-cd /usr/src
-cd ncurses-${VERSION}
-for file in $(find * -name *~); do
-	rm -f ${file}
-done
-for file in $(find * -name *.orig); do
-	rm -f ${file}
+# Cleanup Directory
+#
+for dir in $(find * -type d); do
+	cd /usr/src/ncurses-${VERSION}/${dir}
+	for file in $(find * -name *~); do
+		rm -f ${file}
+	done
+	for file in $(find * -name *.orig); do
+		rm -f ${file}
+	done
 done
 
 # Create Patch

Modified: trunk/scripts/patch/readline-patch.sh
==============================================================================
--- trunk/scripts/patch/readline-patch.sh (original)
+++ trunk/scripts/patch/readline-patch.sh Thu Jan  8 23:56:42 2009
@@ -79,29 +79,32 @@
 
 # Cleanup Directory
 #
-cd /usr/src
-cd readline-${VERSION}
-for file in $(find * -name *~); do
-	rm -f ${file}
-done
-for file in $(find * -name *.orig); do
-	rm -f ${file}
+# Cleanup Directory
+#
+for dir in $(find * -type d); do
+	cd /usr/src/readline-${VERSION}/${dir}
+	for file in $(find * -name *~); do
+		rm -f ${file}
+	done
+	for file in $(find * -name *.orig); do
+		rm -f ${file}
+	done
 done
 
 # Create Patch
 #
 cd /usr/src
-echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > readline-${VERSION}-fixes-x.patch
-echo "Date: `date +%m-%d-%Y`" >> readline-${VERSION}-fixes-x.patch
-echo "Initial Package Version: ${VERSION}" >> readline-${VERSION}-fixes-x.patch
-echo "Origin: Upstream" >> readline-${VERSION}-fixes-x.patch
-echo "Upstream Status: Applied" >> readline-${VERSION}-fixes-x.patch
-echo "Description: Contains all upstream patches up to ${VERSION}-${FILES}" >> readline-${VERSION}-fixes-x.patch
+echo "Submitted By: Jim Gifford (jim at cross-lfs dot org)" > readline-${VERSION}-branch_update-x.patch
+echo "Date: `date +%m-%d-%Y`" >> readline-${VERSION}-branch_update-x.patch
+echo "Initial Package Version: ${VERSION}" >> readline-${VERSION}-branch_update-x.patch
+echo "Origin: Upstream" >> readline-${VERSION}-branch_update-x.patch
+echo "Upstream Status: Applied" >> readline-${VERSION}-branch_update-x.patch
+echo "Description: Contains all upstream patches up to ${VERSION}-${FILES}" >> readline-${VERSION}-branch_update-x.patch
 if [ -n "${SKIPPED}" ]; then
-	echo "            Thee following patches were skipped" >> readline-${VERSION}-fixes-x.patch
-	echo "            ${SKIPPED}" >> readline-${VERSION}-fixes-x.patch
+	echo "            Thee following patches were skipped" >> readline-${VERSION}-branch_update-x.patch
+	echo "            ${SKIPPED}" >> readline-${VERSION}-branch_update-x.patch
 fi
-echo "" >> readline-${VERSION}-fixes-x.patch
-diff -Naur readline-${VERSION}.orig readline-${VERSION} >> readline-${VERSION}-fixes-x.patch
-echo "Created /usr/src/readline-${VERSION}-fixes-x.patch."
+echo "" >> readline-${VERSION}-branch_update-x.patch
+diff -Naur readline-${VERSION}.orig readline-${VERSION} >> readline-${VERSION}-branch_update-x.patch
+echo "Created /usr/src/readline-${VERSION}-branch_update-x.patch."
 

Modified: trunk/scripts/patch/vim-patch.sh
==============================================================================
--- trunk/scripts/patch/vim-patch.sh (original)
+++ trunk/scripts/patch/vim-patch.sh Thu Jan  8 23:56:42 2009
@@ -79,13 +79,16 @@
 
 # Cleanup Directory
 #
-cd /usr/src
-cd vim${SERIES}
-for file in $(find * -name *~); do
-	rm -f $file
-done
-for file in $(find * -name *.orig); do
-	rm -f $file
+# Cleanup Directory
+#
+for dir in $(find * -type d); do
+	cd /usr/src/vim${SERIES}/${dir}
+	for file in $(find * -name *~); do
+		rm -f ${file}
+	done
+	for file in $(find * -name *.orig); do
+		rm -f ${file}
+	done
 done
 
 # Create Patch




More information about the Clfs-commits mailing list