Skip to content

Commit

Permalink
added renaming to bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusmueller committed Aug 21, 2017
1 parent 407497d commit 065978d
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion fdk-aac-dab/bootstrap
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"

0 comments on commit 065978d

Please sign in to comment.