about summary refs log tree commit diff stats
path: root/home-manager/packages/scripts/deprecated/java_compiler/new
blob: 22f871f50ad3a0cb3eb79f718b052174ff2011cd (plain) (blame)
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
#! /usr/bin/env dash
# shellcheck disable=SC2086
# shellcheck source=/dev/null
. ./lib


[ -z "$1" ] && die "Requires name"
mkdir "$1"
pw="$1"

ln -sr jc ./$pw/jc
ln -sr jj ./$pw/jj
ln -sr clpa ./$pw/clpa
ln -sr lib ./$pw/lib
ln -sr fmt ./$pw/fmt

cd $pw
mkdir libs
mkdir -p out/cache
mkdir scr
mkdir target

cat > scr/Main.java << EOL 
public class Main {
    public static void main(String[] args) {
        System.out.println("Hello, world!");
    }
}
EOL
cat > .gitignore << EOL
/target
.gitignore
/out
EOL
git init > /dev/null
[ -d /tmp/LIB_FILE_TEMP_DIR/ ] && rm -r /tmp/LIB_FILE_TEMP_DIR/
exit 0