Skip to content

Instantly share code, notes, and snippets.

@BoQsc
Last active September 18, 2019 16:49
Show Gist options
  • Save BoQsc/14aeeecb1031d2e55df604fe0e4729f4 to your computer and use it in GitHub Desktop.
Save BoQsc/14aeeecb1031d2e55df604fe0e4729f4 to your computer and use it in GitHub Desktop.
D lang Dub project creation using batch script
#!/usr/bin/env bash
## https://stackoverflow.com/questions/16508817/how-do-i-provide-input-to-a-c-program-from-bash/16509089#16509089
rm "dub.json"
rm "dub.sdl"
rm ".gitignore"
rm -r "source"
(
echo "sdl" #Package recipe format
echo "testingprojectname" #name
echo "" #description
echo "authornamehere" #authors
echo "" #license
echo "" #copyright
) | dub init
exit
##dub init << \
##"EOF"
##sdl
#newgameproject
#
#boqsc
#
#EOF
#echo test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment