forked from andrmuel/gr-dab
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
407497d
commit 065978d
Showing
1 changed file
with
17 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,20 @@ | ||
#! /bin/sh | ||
#!/bin/sh | ||
|
||
#stupid, but works: first "unpatch", in case we've patched already | ||
echo "scanning for files..." | ||
files=$(git ls-files|grep -v bootstrap |grep -vi changelog) | ||
echo "replacing occurrences of patched string" | ||
sed -i 's/\(fdk[^ ]aac\)[^ ]dab/\1/g' $files | ||
sed -i 's/\(FDK[^ ]AAC\)[^ ]DAB/\1/g' $files | ||
|
||
#then patch: append "dab" to lower and uppercase fdk?aacdab, and use the same "?" | ||
#delimiter to connect the two | ||
echo "patching" | ||
sed -i 's/\(fdk\([^ ]\)aac\)/\1\2dab/g' $files | ||
sed -i 's/\(FDK\([^ ]\)AAC\)/\1\2DAB/g' $files | ||
|
||
mv fdk-aac.pc.in fdk-aac-dab.pc.in | ||
mv fdk-aac.sym fdk-aac-dab.sym | ||
|
||
autoreconf --install && \ | ||
echo "You can call ./configure now" |