Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
package-helpers
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
32
Merge Requests
32
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
trisquel
package-helpers
Commits
32a9a4d6
Commit
32a9a4d6
authored
Jun 18, 2015
by
Santiago Rodriguez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compiz: change string manipulations and use sed
parent
deafb13d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
48 deletions
+2
-48
helpers/make-compiz
helpers/make-compiz
+2
-48
No files found.
helpers/make-compiz
View file @
32a9a4d6
...
...
@@ -25,30 +25,8 @@ VERSION=1
# Need to remove an 'option' in the XML file.
# It extends for five lines, so we will comment
# them out.
xmlFileName
=
plugins/workarounds/workarounds.xml.in
xmlStringToLookFor
=
fglrx_xgl_fix
xmlSkipLines
=
4
cat
$xmlFileName
|
while
read
line
;
do
if
(
echo
$line
|grep
$xmlStringToLookFor
>
/dev/null
)
;
then
echo
"<!-- Removing recommendation to use non-free software"
echo
"
$line
"
count
=
0
while
[
"
$count
"
-lt
"
$xmlSkipLines
"
]
;
do
count
=
`
expr
$count
+ 1
`
;
read
line
echo
"
$line
"
done
echo
"-->"
else
echo
"
$line
"
fi
done
>
$xmlFileName
.tmp
mv
$xmlFileName
.tmp
$xmlFileName
sed
-i
'/fglrx_xgl_fix"/,/option/d'
plugins/workarounds/workarounds.xml.in
# The C++ code calls methods that appear to be based
# on the part of the XML file that we removed.
...
...
@@ -60,32 +38,8 @@ mv $xmlFileName.tmp $xmlFileName
# It's defined at the end of the "*.cpp" file.
# There is another call to a related method.
# I just comment out that call.
cppFileName
=
plugins/workarounds/src/workarounds.cpp
cppStringToLookFor
=
optionSetFglrxXglFixNotify
cppSkipLines
=
2
cat
$cppFileName
|
while
read
line
;
do
if
(
echo
$line
|grep
$cppStringToLookFor
>
/dev/null
)
;
then
echo
"/**************** Removing recommendation to use non-free software"
echo
"
$line
"
count
=
0
while
[
"
$count
"
-lt
"
$cppSkipLines
"
]
;
do
count
=
`
expr
$count
+ 1
`
;
read
line
echo
"
$line
"
done
echo
"****************/"
else
echo
"
$line
"
fi
done
>
$cppFileName
.tmp
mv
$cppFileName
.tmp
$cppFileName
sed
-i
'/optionSetFglrxXglFixNotify/,/_1/ s:^://:'
plugins/workarounds/src/workarounds.cpp
# Create declaration of method in the *.h file
echo
"extern bool optionGetFglrxXglFix();"
>>
plugins/workarounds/src/workarounds.h
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment