diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0708bae --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/**/*.o diff --git a/04-databases/basic-sql-blog/Main.m b/04-databases/basic-sql-blog/Main.m index 7daa529..bcd0ed9 100644 --- a/04-databases/basic-sql-blog/Main.m +++ b/04-databases/basic-sql-blog/Main.m @@ -1,4 +1,9 @@ + zlink "routines/Comment" + zlink "routines/Database" + zlink "routines/Post" + zlink "routines/User" + ; create users s ok=$$set^User(1,"alice~password~alice-jones@no-reply.com~Alice Jones") diff --git a/04-databases/basic-sql-crud/Main.m b/04-databases/basic-sql-crud/Main.m index 2f80569..b93a4ff 100644 --- a/04-databases/basic-sql-crud/Main.m +++ b/04-databases/basic-sql-crud/Main.m @@ -1,4 +1,7 @@ + zlink "routines/Database" + zlink "routines/User" + ; create users s ok=$$set^User(1,"alice~password~alice-jones@no-reply.com~Alice Jones") diff --git a/README.md b/README.md index 9a504fe..6525a62 100644 --- a/README.md +++ b/README.md @@ -38,8 +38,7 @@ To install GT.M on Debian based OS: Set up the environment variables: - cd /usr/lib/x86_64-linux-gnu/fis-gtm/V6.3-003A_x86_64 - source gtmprofile + source /usr/lib/x86_64-linux-gnu/fis-gtm/V6.3-003A_x86_64/gtmprofile Open the GT.M prompt: @@ -57,9 +56,17 @@ To uninstall GT.M: ## Run the Examples -Copy the examples into your `~/.fis-gtm/V6.3-003A_x86_64/r` folder and run: +Copy the example of your choice into `$gtmdir/$gtmver/r`: - mumps -run ^HelloWorld + cp -r /mumps-examples/04-databases/basic-sql-blog/* $gtmdir/$gtmver/r + +Or alternatively create a symbolic link: + + ln -s /mumps-examples/04-databases/basic-sql-blog/* ~/.fis-gtm/V6.3-003A_x86_64/r + +Then run: + + mumps -run ^Main ---