{"id":25081110,"url":"https://github.com/odegnome/compc","last_synced_at":"2025-10-08T00:32:26.648Z","repository":{"id":170894495,"uuid":"367120289","full_name":"odegnome/compc","owner":"odegnome","description":null,"archived":false,"fork":false,"pushed_at":"2021-05-26T13:42:02.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-07T04:42:40.384Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/odegnome.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-13T17:11:47.000Z","updated_at":"2021-05-26T13:42:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"5a2f67bb-1064-44c3-8da3-acbc3f9b3d4f","html_url":"https://github.com/odegnome/compc","commit_stats":null,"previous_names":["coder-rg/compc","odegnome/compc"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/odegnome%2Fcompc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/odegnome%2Fcompc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/odegnome%2Fcompc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/odegnome%2Fcompc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/odegnome","download_url":"https://codeload.github.com/odegnome/compc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246604614,"owners_count":20804100,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-07T04:36:41.293Z","updated_at":"2025-10-08T00:32:26.544Z","avatar_url":"https://github.com/odegnome.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# compc\n[![MIT License](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE) [![made-with-bash](https://img.shields.io/badge/Made%20with-Bash-1f425f.svg)](https://www.gnu.org/software/bash/) [![GitHub tag](https://img.shields.io/github/tag/Coder-RG/compc.svg)](https://GitHub.com/Coder-RG/compc/tags/)\n\n\n\n**This may only work in bash**\n\nCompiling C program using `gcc` creates an output file, which needs\nto be run separately.  \nThis really annoyed me hence, I wrote this\nbash file so the C file runs after compilation.\n\nThere still are some features that need to be introduced.  \nPlease contribute if you may be willing to or raise an issue.\n\n## Table of Content\n1. [How to make it work](#how-to-make-it-work)\n2. [Trying it out](#trying-it-out)\n3. [Some example code](#some-example-code)\n4. [You reached here](#you-reached-here)\n\n## How to make it work\n- First change directory to this project.\n\n- Open the terminal and write\n```bash\npwd\n```\n- Add this project to the PATH variable\n```bash\nexport PATH=$PATH:\u003cpath-to-this-project\u003e\n```\nIf your path to this project is `/home/\u003cusername\u003e/compc` then, use `export PATH=$PATH:/home/\u003cusername\u003e/compc`.\n- This way of exporting is not permanent. To make it permanent,\nupdate the .bashrc file with the export command at the end of the file.\n\n**NOTE:** .bashrc file is an integral part of bash. Please do not play with it.\n\n## Trying it out\n\n```bash\ncompc \u003cfile_name\u003e\n```\n- If your file_name is test.c then,\n```bash\ncompc test.c\n```\n\n## Some example code\n\nCreate a new file and copy this code.(ex. test.c)\n\n```C\n#include\u003cstdio.h\u003e\n\nint main()\n{\n  printf(\"Hello, World!\");\n  return 0;\n}\n```\nThen run it using compc\n\n```bash\ncompc test.c\n```\n\nIf everything is set up correctly, then it should show _Hello, World!_ as output.\n\n## You reached here\n\nThe bash file works somewhat like,\n1. It uses `gcc \u003cfile_name\u003e.c -o file_name`\n2. It then simply runs the file using `./file_name`\n\n**Explore the file and contribute since this lacks many features.**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fodegnome%2Fcompc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fodegnome%2Fcompc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fodegnome%2Fcompc/lists"}