Menu

[6b858f]: / tree.sh  Maximize  Restore  History

Download this file

60 lines (59 with data), 1.5 kB

 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/sh -
#
# This script assumes that is being run on a new directory where the contents of
# the css4j-dist repository have been copied. It will fetch the current css4j
# and other modules from git, and create a 'release-scripts' directory.
#
# Uses 'git clone --depth 1' due to Github not supporting 'git archive'.
#
GIT="git clone --depth 1 -c core.autocrlf=input -c core.eol=lf --branch 1-stable"
DIR=css4j
if [ -d ${DIR} ]; then
rm -fr ${DIR}
fi
${GIT} https://github.com/css4j/${DIR}.git
rm -fr ${DIR}/.git
rm ${DIR}/.gitignore
rm ${DIR}/.gitattributes
cp -fp ${DIR}/LICENSES.txt .
DIR=css4j-dom4j
if [ -d ${DIR} ]; then
rm -fr ${DIR}
fi
${GIT} https://github.com/css4j/${DIR}.git
rm -fr ${DIR}/.git
rm ${DIR}/.gitignore
rm ${DIR}/.gitattributes
DIR=css4j-agent
if [ -d ${DIR} ]; then
rm -fr ${DIR}
fi
${GIT} https://github.com/css4j/${DIR}.git
rm -fr ${DIR}/.git
rm ${DIR}/.gitignore
rm ${DIR}/.gitattributes
cat ${DIR}/LICENSES.txt >> LICENSES.txt
DIR=css4j-awt
if [ -d ${DIR} ]; then
rm -fr ${DIR}
fi
${GIT} https://github.com/css4j/${DIR}.git
rm -fr ${DIR}/.git
rm ${DIR}/.gitignore
rm ${DIR}/.gitattributes
/usr/bin/unix2dos *.txt
if [ ! -d release-scripts ]; then
mkdir release-scripts
fi
if [ ! -d jar ]; then
mkdir jar
fi
BOLD=$(tput bold)
RESET=$(tput sgr0)
echo ${BOLD}Now execute:
echo -n 'export JAVA_HOME="/usr/lib/jvm/java-14-openjdk-amd64/"'
echo ${RESET} '(or your path to JDK12 or higher)'${BOLD}
echo mvn
echo mv */build/*.jar jar
echo mv *.sh release-scripts
echo -n ${RESET}