Permalink
Browse files

Add my quick "fixmodules.sh" script to the base modules10 directory. …

…This can easily be modifid to bulk-fix other types of bugs as well.
  • Loading branch information...
1 parent 9de96d1 commit 655eb25b3b1b53d18d749049d706a2b55ee43bba Ken Moore committed Nov 12, 2013
Showing with 23 additions and 2 deletions.
  1. +2 −2 modules10/devel/qsvn/pbi.conf
  2. +21 −0 modules10/fixModules.sh
@@ -15,7 +15,7 @@ PBI_ICONURL="http://images.pbidir.com/progicons/qsvn.png"
PBI_CATEGORY="Development"
# -- Port Information --
-PBI_MAKEPORT="devel/qsvn/"
+PBI_MAKEPORT="devel/qsvn"
PBI_MKPORTBEFORE=""
PBI_MKPORTAFTER="devel/qt4"
PBI_MAKEOPTS="" #Disused for package/repo builds
@@ -24,7 +24,7 @@ PBI_MAKEOPTS="" #Disused for package/repo builds
PBI_REQUIRESROOT="NO"
# -- Repo Configuration Options (optional) --
-PBI_BUILDKEY="00"
+PBI_BUILDKEY="2"
PBI_PROGREVISION=""
PBI_AB_PRIORITY=""
PBI_AB_NOTMPFS=""
View
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+#quick script to search for and fix all the pbi.conf's it is given
+for i in $@
+do
+if [ ! "`basename ${i}`" == "pbi.conf" ]; then
+ continue
+fi
+
+#Run the pbi.conf to set the variables
+. ${i}
+#Remove trailing "/" from PBI_MAKEPORT
+if [ ${PBI_MAKEPORT} != ${PBI_MAKEPORT%/} ]; then
+ echo "Fixing Trailing / in PBI_MAKEPORT: ${i}"
+ sed -i.bak "s,PBI_MAKEPORT=\"${PBI_MAKEPORT}\",PBI_MAKEPORT=\"${PBI_MAKEPORT%/}\",g" ${i}
+ sed -i.bak "s,PBI_BUILDKEY=\"${PBI_BUILDKEY}\",PBI_BUILDKEY=\"`expr ${PBI_BUILDKEY} + 1`\",g" ${i}
+ git add ${i}
+fi
+
+#end of the loop over pbi.conf's
+done

0 comments on commit 655eb25

Please sign in to comment.