forked from osm2pgsql-dev/osm2pgsql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cygpkg.sh
59 lines (50 loc) · 1.76 KB
/
cygpkg.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
#!/bin/bash
#
# Author: Jason Huntley
# Email: [email protected]
# Description: Cygwin Package script
#
# Change Log
#
# Date Description Initials
#-------------------------------------------------------------
# 04-11-13 Initial Coding JAH
#=============================================================
if [ ! -e "cygwin-package" ]; then
mkdir cygwin-package
fi
echo
echo Copying Executable...
echo
cp -rfv default.style cygwin-package || { stat=$?; echo "Packaging failed, aborting" >&2; exit $stat; }
cp -rfv 900913.sql cygwin-package || { stat=$?; echo "Packaging failed, aborting" >&2; exit $stat; }
cp -rfv README cygwin-package || { stat=$?; echo "Packaging failed, aborting" >&2; exit $stat; }
cp -rfv .libs/osm2pgsql.exe cygwin-package || { stat=$?; echo "Packaging failed, aborting" >&2; exit $stat; }
echo
echo Copying Dependent Libraries...
echo
cp -rfv /bin/cygcrypt*.dll cygwin-package
cp -rfv /bin/cyggcc*.dll cygwin-package
cp -rfv /usr/local/bin/cyggeos*.dll cygwin-package
cp -rfv /bin/cygiconv*.dll cygwin-package
cp -rfv /bin/cygintl*.dll cygwin-package
cp -rfv /bin/cyglber*.dll cygwin-package
cp -rfv /bin/cygldap*.dll cygwin-package
cp -rfv /bin/cyglzma*.dll cygwin-package
cp -rfv /bin/cygpq*.dll cygwin-package
cp -rfv /usr/local/bin/cygproj*.dll cygwin-package
cp -rfv /usr/local/bin/cygproto*.dll cygwin-package
cp -rfv /bin/cygsasl*.dll cygwin-package
cp -rfv /bin/cygssl*.dll cygwin-package
cp -rfv /bin/cygstdc++**.dll cygwin-package
cp -rfv /bin/cygwin*.dll cygwin-package
cp -rfv /bin/cygxml2*.dll cygwin-package
cp -rfv /bin/cygz*.dll cygwin-package
echo
echo Creating Archive...
echo
zip -r9 cygwin-package.zip cygwin-package
echo
echo Packaging Complete.
echo
exit 0