[SCM] Debian Live application startscripts branch, master, updated. ade5dd20c259a22c4b215c095a987800a1940938
Daniel Baumann
daniel at debian.org
Sat Nov 29 22:57:48 UTC 2008
The following commit has been merged in the master branch:
commit e8a8319cf525dc4552b387d54e4e3ef5d10466ce
Author: Daniel Baumann <daniel at debian.org>
Date: Wed Sep 3 19:09:24 2008 +0200
Adding Makefile.
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..3d348d2
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,37 @@
+# Makefile
+
+test:
+ # Checking for syntax errors
+ set -e; for SCRIPT in functions/* scripts/*; \
+ do \
+ sh -n $$SCRIPT; \
+ done
+
+ # Checking for bashisms
+ set -e; if [ -x /usr/bin/checkbashisms ]; \
+ then \
+ checkbashisms functions/* scripts/*; \
+ else \
+ echo "bashism test skipped - you need to install devscripts."; \
+ fi
+
+install:
+ # Installing executables
+ mkdir -p $(DESTDIR)/usr/bin
+ cp scripts/* $(DESTDIR)/usr/bin
+
+ # Installing shared data
+ mkdir -p $(DESTDIR)/usr/share/live-startscripts
+ cp -r functions $(DESTDIR)/usr/share/live-startscripts
+
+uninstall:
+ # Uninstalling executables
+ for SCRIPT in scripts/*; \
+ do \
+ rm -f $(DESTDIR)/usr/bin/`basename $$SCRIPT`; \
+ done
+
+ # Uninstalling shared data
+ rm -rf $(DESTDIR)/usr/share/live-startscripts
+
+reinstall: uninstall install
--
Debian Live application startscripts
More information about the debian-live-changes
mailing list