You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

12 lines
503 B

  1. #!/bin/bash
  2. rm -rf hellopackage
  3. mkdir -p hellopackage hellopackage/usr/local/bin hellopackage/var/helloworld
  4. printf "%s" '#!/usr/bin/env python3\nprint("Hello, World!")' > hellopackage/var/helloworld/helloworld.py
  5. printf "%s" '#!/bin/bash\n/var/helloworld/helloworld.py' > hellopackage/usr/local/bin/helloworld
  6. chmod -R 0755 hellopackage/var/helloworld hellopackage/usr/local/bin/helloworld
  7. mkdir -p hellopackage/DEBIAN
  8. cp control hellopackage/DEBIAN/
  9. dpkg-deb --build --root-owner-group hellopackage