A CVS to Git conversion was made via the cvs2git tool [1], following the documentation provided by SourceForge. [2] These were the commands used to perform the conversion: $ rsync -av rsync://freesolid.cvs.sourceforge.net/cvsroot/freesolid/\* cvs $ cvs2git --blobfile=blob.dat --dumpfile=dump.dat \ --username=xavi --default-eol=native \ --encoding=utf8 --encoding=latin1 --fallback-encoding=ascii \ cvs/backup $ mkdir new_git $ git init new_git $ cat blob.dat dump.dat | git --git-dir=new_git/.git fast-import After the conversion, two directories were available: CVSROOT and freesolid, where the latter included the project files. Therefore, CVSROOT was filtered out with git-filter-repo [3], and the contents of the freesolid directory were moved to the root directory: $ git-filter-repo -f --path freesolid/ $ git mv -- freesolid/* . [1]: https://www.mcs.anl.gov/~jacob/cvs2svn/cvs2git.html [2]: https://sourceforge.net/p/forge/documentation/CVS/ [3]: https://github.com/newren/git-filter-repo
55 lines
986 B
Bash
Executable file
55 lines
986 B
Bash
Executable file
#!/bin/sh
|
|
|
|
prefix=@prefix@
|
|
exec_prefix=@exec_prefix@
|
|
exec_prefix_set=no
|
|
|
|
usage="\
|
|
Usage: freesolid-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--cflags] [--libs]"
|
|
|
|
if test $# -eq 0; then
|
|
echo "${usage}" 1>&2
|
|
exit 1
|
|
fi
|
|
|
|
while test $# -gt 0; do
|
|
case "$1" in
|
|
-*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
|
*) optarg= ;;
|
|
esac
|
|
|
|
case $1 in
|
|
--prefix=*)
|
|
prefix=$optarg
|
|
if test $exec_prefix_set = no ; then
|
|
exec_prefix=$optarg
|
|
fi
|
|
;;
|
|
--prefix)
|
|
echo $prefix
|
|
;;
|
|
--exec-prefix=*)
|
|
exec_prefix=$optarg
|
|
exec_prefix_set=yes
|
|
;;
|
|
--exec-prefix)
|
|
echo $exec_prefix
|
|
;;
|
|
--version)
|
|
echo @FREESOLID_VERSION@
|
|
;;
|
|
--cflags)
|
|
includedirs=""
|
|
echo $includedirs -I@includedir@/FreeSOLID
|
|
;;
|
|
--libs)
|
|
libdirs=""
|
|
echo -L@libdir@ -lFreeSOLID $libdirs
|
|
;;
|
|
*)
|
|
echo "${usage}" 1>&2
|
|
exit 1
|
|
;;
|
|
esac
|
|
shift
|
|
done
|