Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zmap
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ensembl-gh-mirror
zmap
Commits
2403aef7
Commit
2403aef7
authored
17 years ago
by
edgrif
Browse files
Options
Downloads
Patches
Plain Diff
add option to create a patched foocanvas just from our cvs copy.
parent
8d4ad285
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
foocanvas/README
+9
-0
9 additions, 0 deletions
foocanvas/README
foocanvas/make_working_foocanvas
+61
-6
61 additions, 6 deletions
foocanvas/make_working_foocanvas
with
70 additions
and
6 deletions
foocanvas/README
+
9
−
0
View file @
2403aef7
...
...
@@ -42,6 +42,15 @@ autogen.sh --prefix=<directory where you will want to install foocanvas>
when that has finished you can simply type 'make' and 'make install'
Alternatively if you simply want to do a build with the current patch and the
version of foocanvas that the patch was created from (stored in cvs with the
patch) then you use the -b flag:
make_working_foocanvas -b
This produces the same directory structure as before and you run autogen.sh as
before.
make_cvs_foocanvas
------------------
...
...
This diff is collapsed.
Click to expand it.
foocanvas/make_working_foocanvas
+
61
−
6
View file @
2403aef7
...
...
@@ -7,6 +7,30 @@
scriptname
=
`
basename
$0
`
# set up usage strings.
cmdstring
=
'[ -b ]'
descstring
=
'
-b build copy only, do not check out latest foocanvas from gnome site but instead
use copy of foocanvas code in cvs to do patch and build.'
usage
()
{
if
[
-n
"
$3
"
]
then
echo
echo
"Warning:
$3
"
fi
echo
echo
"Usage:
$scriptname
$1
"
echo
echo
"
$2
"
echo
exit
1
}
msgAndExit
()
{
errmsg
=
"
$scriptname
- Fatal Error:
$1
!!"
...
...
@@ -21,6 +45,15 @@ working_dir='foocanvas.working'
latest_dir
=
'foocanvas.latest'
support_dir
=
'support'
our_src_dir
=
'additional_files'
buildonly
=
''
while
getopts
":b"
opt
;
do
case
$opt
in
b
)
buildonly
=
'TRUE'
;;
\?
)
usage
"
$cmdstring
"
"
$descstring
"
"Bad command line flag"
esac
done
...
...
@@ -35,12 +68,6 @@ mkdir $patch_dir || msgAndExit "could not make $patch_dir"
cd
$patch_dir
||
msgAndExit
"could not cd to
$patch_dir
"
# Get the latest foo canvas....
svn co http://svn.gnome.org/svn/foocanvas/trunk
$latest_dir
||
msgAndExit
"cannot get latest foocanvas source, check settings in
$HOME
/.subversion"
cp
-r
$latest_dir
$working_dir
||
msgAndExit
"cannot make working copy of latest canvas source"
# Get the last patch file...relies on naming convention for patch files keeping them in date order.
for
i
in
`
ls
../
$support_dir
/libfoocanvas-
*
.patch
`
do
...
...
@@ -49,6 +76,34 @@ done
cp
"../
$support_dir
/
$patch_file
"
.
||
msgAndExit
"copy of ../
$support_dir
/
$patch_file
failed"
# decide which version of foocanvas to use...
if
[
-z
"
$buildonly
"
]
;
then
# Get the latest foo canvas....
svn co http://svn.gnome.org/svn/foocanvas/trunk
$latest_dir
||
msgAndExit
"cannot get latest foocanvas source, check settings in
$HOME
/.subversion"
else
# use foocanvas version in cvs, note we use same trick to get latest file as above for patch file.
for
i
in
`
ls
../
$support_dir
/libfoocanvas-
*
.tar.gz
`
do
tar_file
=
$i
done
tar_file
=
`
basename
$tar_file
`
cp
"../
$support_dir
/
$tar_file
"
.
||
msgAndExit
"copy of ../
$support_dir
/
$tar_file
failed"
tar
-zxf
$tar_file
tar_base
=
`
basename
$tar_file
.tar.gz
`
mv
$tar_base
$latest_dir
rm
-f
$tar_file
fi
cp
-r
$latest_dir
$working_dir
||
msgAndExit
"cannot make working copy of latest canvas source"
# Get our source files.
cp
../
$our_src_dir
/
*
.[ch]
$working_dir
/libfoocanvas
||
msgAndExit
"copy of .c and .h files failed"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment