This repository has been archived by the owner on Jan 8, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathwineimport.sh
executable file
·94 lines (88 loc) · 2.1 KB
/
wineimport.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
#!/bin/bash
#
# Copyright (C) 2006-2008 Hervé Poussineau ([email protected])
# Copyright (C) 2008 Pierre Schweitzer ([email protected])
# ****************************************************************************
# Internal functions
int_help()
{
echo "Syntax:"
echo "$0 download {wine_lib} [{wine_lib} ...]"
echo "$0 createrbuild {wine_lib} [{wine_lib} ...]"
echo "$0 link {path_to_reactos} {wine_lib}"
echo "$0 merge {path_to_reactos} {wine_lib} [{wine_lib} ...]"
echo "$0 make {path_to_reactos} {wine_lib} [{wine_lib} ...]"
echo "$0 fullprocessing {path_to_reactos} {wine_lib} [{wine_lib} ...]"
exit 0
}
int_download()
{
if [ "$2" == "" ]; then
int_help
fi
export CVSROOT=":pserver:cvs:[email protected]:/home/wine"
cvs login &>/dev/null
if [ $? = 127 ]; then
echo "Error when executing cvs. Try to download the lastest version using"
echo "sudo apt-get install cvs"
fi
while [ "$2" != "" ]; do
echo "Downloading $2 ..."
if [ ! -e "wine/dlls/$2/Makefile.in" ]; then
cvs -z 3 checkout wine/dlls/$2 #&>/dev/null
fi
if [ ! -e "wine/dlls/$2/Makefile.in" ]; then
echo "Error when downloading $2. Are you sure it does exist?"
exit 0
fi
cvs -z 3 update -dPA wine/dlls/$2 #&>/dev/null
shift
done
cvs logout &>/dev/null
exit 0
}
# ****************************************************************************
# Stubs for unimplemented functions
int_createbuild()
{
echo "createbuild isn't implemented!"
int_help
}
int_link()
{
echo "link isn't implemented!"
int_help
}
int_merge()
{
echo "merge isn't implemented!"
int_help
}
int_make()
{
echo "make isn't implemented!"
int_help
}
int_fullprocessing()
{
echo "fullprocessing isn't implemented!"
int_help
}
# ****************************************************************************
# Script
WINE_TMPFILE1="tmpfile1.wine"
if [ "$1" == "download" ]; then
int_download "$@"
elif [ "$1" == "createrbuild" ]; then
int_createrbuild
elif [ "$1" == "link" ]; then
int_link
elif [ "$1" == "merge" ]; then
int_merge
elif [ "$1" == "make" ]; then
int_make
elif [ "$1" == "fullprocessing" ]; then
int_fullprocessing
else
int_help
fi