Commits

Moises Henriquez committed e109b85

proposing patch handling changes

  • Participants
  • Parent commits 3053956

Comments (0)

Files changed (1)

File templates/pkgsetup

 # Put any Patches here
 #-----------------------------------------------------
 #patch -p1 <
+for i in $CWD/patches/*; do
+# FIXME:
+# SOMEONE PLEASE FIX THIS... BASH IS NOT MY BEST SKILL AS YOU CAN SEE
+ext = echo $i | awk -F . '{print $NF}'
+case ext in 
+".diff";
+cm = patch -p1 < $i;;
+".gz";
+cm = gzcat $i | patch -p1;;
+".bz2";
+cm = bzcat $i | patch -p1;;
+esac
 #-----------------------------------------------------