diff options
Diffstat (limited to 'cpp.pkg.in')
-rw-r--r-- | cpp.pkg.in/control | 7 | ||||
-rw-r--r-- | cpp.pkg.in/files | 1 | ||||
-rwxr-xr-x | cpp.pkg.in/postinst | 7 | ||||
-rwxr-xr-x | cpp.pkg.in/prerm | 7 |
4 files changed, 22 insertions, 0 deletions
diff --git a/cpp.pkg.in/control b/cpp.pkg.in/control new file mode 100644 index 0000000..a835d86 --- /dev/null +++ b/cpp.pkg.in/control @@ -0,0 +1,7 @@ +Architecture: all +Platform: all +Depends: gcc-defaults-common (= ${Binary-Version}), cpp-4.7-@PKG_TARGET_ARCH@ +Description: GNU C preprocessor for @PKG_TARGET_ARCH@ + The C preprocessor implements the macro language used to transform C, C++, and + Objective-C programs before they are compiled. It can also be useful on its + own. diff --git a/cpp.pkg.in/files b/cpp.pkg.in/files new file mode 100644 index 0000000..0fd7e3c --- /dev/null +++ b/cpp.pkg.in/files @@ -0,0 +1 @@ +/usr/bin/@PKG_TARGET_ARCH@-cpp diff --git a/cpp.pkg.in/postinst b/cpp.pkg.in/postinst new file mode 100755 index 0000000..6087128 --- /dev/null +++ b/cpp.pkg.in/postinst @@ -0,0 +1,7 @@ +#! /bin/sh + +if [ "x${1}" = 'xconfigure' ]; then + if [ "x$(cat /etc/proteanos_arch)" = 'x@PKG_TARGET_ARCH@' ]; then + ln -sf @PKG_TARGET_ARCH@-cpp /usr/bin/cpp + fi +fi diff --git a/cpp.pkg.in/prerm b/cpp.pkg.in/prerm new file mode 100755 index 0000000..6af1b97 --- /dev/null +++ b/cpp.pkg.in/prerm @@ -0,0 +1,7 @@ +#! /bin/sh + +if [ "${1}" = remove ]; then + if [ "x$(cat /etc/proteanos_arch)" = 'x@PKG_TARGET_ARCH@' ]; then + rm -f /usr/bin/cpp + fi +fi |