blob: 22f871f50ad3a0cb3eb79f718b052174ff2011cd (
plain) (
tree)
|
|
#! /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
|